Correxiones sintaxis
This commit is contained in:
@@ -222,12 +222,12 @@
|
||||
<div class="col-md-4 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<select id="pais" name="pais" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required>
|
||||
<option value="">Selecciona país</option>
|
||||
<option value=""></option>
|
||||
<?php foreach($paises as $p): ?>
|
||||
<option value="<?= $p['id_pais'] ?>"><?= htmlspecialchars($p['nombre']) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<label for="pais" class="form-label">País *</label>
|
||||
<label for="pais" class="form-label">País</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
<select id="entidad" name="entidad" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required disabled>
|
||||
<option value="">Primero país…</option>
|
||||
</select>
|
||||
<label for="entidad" class="form-label">Entidad *</label>
|
||||
<label for="entidad" class="form-label">Entidad</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -245,11 +245,11 @@
|
||||
<select id="ciudad" name="ciudad" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required disabled>
|
||||
<option value="">Primero estado…</option>
|
||||
</select>
|
||||
<label for="ciudad" class="form-label">Ciudad *</label>
|
||||
<label for="ciudad" class="form-label">Ciudad</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8 form-group-animated">
|
||||
<div class="col-md-12 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<input name="domicilio" id="domicilio" type="text" class="form-control input-pulse input-gradient" maxlength="100" placeholder=" " required>
|
||||
<label for="domicilio" class="form-label">Domicilio *</label>
|
||||
@@ -373,7 +373,7 @@
|
||||
fetch(`/IMPORTADORES/transportistas/estados?pais=${pid}`)
|
||||
.then(r => { if (!r.ok) throw new Error('Error al cargar estados'); return r.json(); })
|
||||
.then(list => {
|
||||
estadoSelect.innerHTML = '<option value="">Selecciona estado</option>';
|
||||
estadoSelect.innerHTML = '<option value=""></option>';
|
||||
list.forEach(st => estadoSelect.add(new Option(st.nombre, st.id_estado)));
|
||||
estadoSelect.disabled = false;
|
||||
})
|
||||
@@ -392,7 +392,7 @@
|
||||
fetch(`/IMPORTADORES/transportistas/ciudades?estado=${eid}`)
|
||||
.then(r => { if (!r.ok) throw new Error('Error al cargar ciudades'); return r.json(); })
|
||||
.then(list => {
|
||||
ciudadSelect.innerHTML = '<option value="">Selecciona ciudad</option>';
|
||||
ciudadSelect.innerHTML = '<option value=""></option>';
|
||||
list.forEach(ct => ciudadSelect.add(new Option(ct.nombre, ct.id_ciudad)));
|
||||
ciudadSelect.disabled = false;
|
||||
})
|
||||
@@ -423,7 +423,7 @@
|
||||
});
|
||||
// Script para manejar las animaciones de validación
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const inputs = document.querySelectorAll('.form-control');
|
||||
const inputs = document.querySelectorAll('input.form-control, select.form_select');
|
||||
|
||||
inputs.forEach(input => {
|
||||
// Validación en tiempo real
|
||||
|
||||
Reference in New Issue
Block a user