This commit is contained in:
KONE SOREL 2026-03-07 15:15:14 +00:00
parent 64d509ce90
commit daa57ccbda
2 changed files with 101 additions and 30 deletions

View File

@ -1,14 +1,42 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="40%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="35%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau secteur d'activité") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-briefcase text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelle"
name="libelle"
required
autocomplete="off">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="off">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,18 +1,61 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$secteuractivite['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center">Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeSecteur" NAME="codeSecteur" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($secteuractivite['codeSecteur']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="40%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($secteuractivite['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="35%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($secteuractivite['LibelleEng']); ?>"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $secteuractivite['id'] ?>">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-edit me-2"></i><?= _("Modification du secteur d'activité") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-4">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
<div class="input-group shadow-xs">
<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 text-center"
id="codeSecteur"
name="codeSecteur"
value="<?= $this->nettoyer($secteuractivite['codeSecteur']); ?>"
disabled>
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-briefcase 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($secteuractivite['libelle']); ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="off"
value="<?= $this->nettoyer($secteuractivite['LibelleEng']); ?>">
</div>
</div>
</div>
</div>
</div>
</form>