newdesigngestionnaire/vues_newdesign/Ajaxtbmodifierlocalite/index.php
2026-03-12 09:15:34 +00:00

51 lines
3.1 KiB
PHP
Executable File

<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $localite['id'] ?>">
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3">
<h6 class="card-title mb-0 fw-bold text-uppercase text-warning small">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de la localité") ?>
</h6>
</div>
<div class="card-body bg-light-50">
<div class="row g-3">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold" id="codeLocalite" name="codeLocalite" value="<?= $this->nettoyer($localite['codeLocalite']); ?>" disabled>
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé Localité") ?></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelle" name="libelle" required autocomplete="off" value="<?= $this->nettoyer($localite['libelle']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Pays") ?></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-globe text-muted"></i></span>
<select name="codePays" id="codePays" class="form-control selectpicker border-2 border-start-0" required onchange="filtreVilleParPays();">
<?= liste_options($pays, $this->nettoyer($localite['codePays']), true) ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Ville / District") ?></label>
<div class="input-group" id="div_ville_container">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-city text-muted"></i></span>
<select name="codeVille" id="codeVille" class="form-control selectpicker border-2 border-start-0" required>
<?= liste_options($ville, $this->nettoyer($localite['codeVille']), true) ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>