mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
modificado mensaje de cubierta sin acabado
This commit is contained in:
@ -20,6 +20,14 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
|
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
|
||||||
|
<div id="alert-cubierta-sin-acabado" class="alert alert-warning d-flex align-items-baseline d-none" role="alert">
|
||||||
|
<span class="alert-icon alert-icon-lg text-primary me-2">
|
||||||
|
<i class="ti ti-bell ti-sm"></i>
|
||||||
|
</span>
|
||||||
|
<div class="d-flex flex-column ps-1">
|
||||||
|
<h5 class="alert-heading mb-2"><?= lang('Presupuestos.cubiertaSinAcabadoText') ?></h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
||||||
|
|
||||||
<input hidden id="lc" value=""></input>
|
<input hidden id="lc" value=""></input>
|
||||||
|
|||||||
@ -559,6 +559,17 @@ class PresupuestoCliente {
|
|||||||
$('.is-invalid').removeClass('is-invalid');
|
$('.is-invalid').removeClass('is-invalid');
|
||||||
const skAlert = document.getElementById('sk-alert');
|
const skAlert = document.getElementById('sk-alert');
|
||||||
skAlert.innerHTML = '';
|
skAlert.innerHTML = '';
|
||||||
|
|
||||||
|
if (this.datos.cubierta && this.datos.cubierta.acabado && this.datos.cubierta.acabado > 0) {
|
||||||
|
|
||||||
|
$('#alert-cubierta-sin-acabado').addClass('d-none');
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$('#alert-cubierta-sin-acabado').removeClass('d-none');
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if( this.datos.cubierta.acabado )
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(`#containerTiradasEnvios .tirada-envio input[tirada="${this.direcciones.tiradaSeleccionada}"]`).trigger('click');
|
$(`#containerTiradasEnvios .tirada-envio input[tirada="${this.direcciones.tiradaSeleccionada}"]`).trigger('click');
|
||||||
}, 0);
|
}, 0);
|
||||||
@ -598,11 +609,11 @@ class PresupuestoCliente {
|
|||||||
|
|
||||||
#prevtStep() {
|
#prevtStep() {
|
||||||
if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) {
|
if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) {
|
||||||
if (this.validationStepper._currentIndex == 2) {
|
/*if (this.validationStepper._currentIndex == 2) {
|
||||||
if (this.disenioCubierta.acabadoCubierta.getVal() == 0) {
|
if (this.disenioCubierta.acabadoCubierta.getVal() == 0) {
|
||||||
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
|
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
this.validationStepper.previous();
|
this.validationStepper.previous();
|
||||||
}
|
}
|
||||||
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
||||||
|
|||||||
Reference in New Issue
Block a user