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

57 lines
2.5 KiB
PHP
Executable File

<div class="card border-0 shadow-sm border-start border-primary border-4 mb-4">
<div class="card-header bg-white py-3 border-0">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données du Pays") ?>
</h6>
</div>
<div class="card-body">
<form id="formData">
<input type="hidden" id="id" name="id" value="<?= $pays['id'] ?>">
<div class="row g-3">
<div class="col-md-3">
<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-lock text-muted"></i></span>
<input class="form-control border-2 border-start-0 ps-0 majuscule fw-bold bg-white"
type="text"
id="codePays"
name="codePays"
value="<?= $this->nettoyer($pays['codePays']); ?>"
readonly>
</div>
</div>
<div class="col-md-9">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé du Pays") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-globe-africa text-muted"></i></span>
<input class="form-control border-2 border-start-0 ps-0 majuscule"
type="text"
id="libelle"
name="libelle"
value="<?= $this->nettoyer($pays['libelle']); ?>"
required
autocomplete="off"
autofocus>
</div>
</div>
</div>
</form>
</div>
</div>
<style>
/* Focus Ring spécifique au mode édition */
.form-control:focus {
border-color: #212e53 !important;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.15) !important;
}
/* Style champ readonly pour qu'il ne paraisse pas désactivé mais protégé */
input[readonly] {
cursor: not-allowed;
color: #6c757d !important;
}
</style>