This commit is contained in:
KONE SOREL 2026-03-31 10:38:27 +00:00
parent 86061bfa30
commit 138b55289b

View File

@ -13,88 +13,57 @@
<input class="sr-only" type="text" id="idUtilisateur" value="<?= $idUtilisateur ?>">
<input class="sr-only" type="text" id="idClient" value="<?= $idClient ?>">
<h1 class="text-primary"><i class="fas fa-user-edit me-2"></i> <?= _("Modifier l'utilisateur") ?></h1>
<legend> <?= _("Modifier l'utilisateur") . " : " . $codeUtilisateur ?> </legend>
<div >
<h5 class="badge bg-secondary mb-0 fw-bold">
<span class="fw-normal text-dark-50"><?= $codeUtilisateur ?></span>
</h5>
</div>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" class="required"> <?= _("Nom") ?> </td>
<td width="40%" ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="nom" NAME="nom" value="<?= $this->nettoyer($user_rh['nom']) ?>" required autofocus AUTOCOMPLETE="OFF"></td>
<div class="card shadow border-0">
<div class="card-body p-2">
<form id="form_modif_user">
<div class="row mb-2">
<div class="col-12 mb-2">
<h6 class="text-primary text-uppercase small fw-bold border-bottom pb-2">
<i class="fas fa-id-card me-2"></i><?= _("Informations Personnelles") ?>
</h6>
</div>
<div class="col-md-6 mb-2">
<label class="form-label small fw-bold required text-uppercase"><?= _("Nom") ?></label>
<input type="text" id="nom" name="nom" class="form-control shadow-sm"
value="<?= $this->nettoyer($user_rh['nom']) ?>" required autocomplete="off" autofocus>
</div>
<div class="col-md-6 mb-2">
<label class="form-label small fw-bold text-uppercase"><?= _("Prénoms") ?></label>
<input type="text" id="prenoms" name="prenoms" class="form-control shadow-sm"
value="<?= $this->nettoyer($user_rh['prenoms']) ?>">
</div>
<div class="col-md-6 mb-2">
<label class="form-label small fw-bold required text-uppercase"><?= _("Téléphone") ?></label>
<div class="input-group shadow-sm">
<span class="input-group-text"><i class="fas fa-phone"></i></span>
<input type="tel" id="telephone" name="telephone" class="form-control"
value="<?= $this->nettoyer($user_rh['telephone']) ?>" required>
</div>
</div>
<div class="col-md-6 mb-2">
<label class="form-label small fw-bold required text-uppercase"><?= _("E-mail") ?></label>
<div class="input-group shadow-sm">
<span class="input-group-text"><i class="fas fa-envelope"></i></span>
<input type="email" id="email" name="email" class="form-control"
value="<?= $this->nettoyer($user_rh['email']) ?>" required>
</div>
</div>
</div>
<td width="10%" align="center" class="required"> <?= _("Prénoms") ?> </td>
<td ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="prenoms" NAME="prenoms" value="<?= $this->nettoyer($user_rh['prenoms']) ?>" required AUTOCOMPLETE="OFF"></td>
</tr>
<div class="row mb-2">
<div class="col-12 mb-2">
<h6 class="text-primary text-uppercase small fw-bold border-bottom pb-2">
<i class="fas fa-cog me-2"></i><?= _("Paramètres du Compte") ?>
</h6>
</div>
<div class="col-md-4 mb-2">
<label class="form-label small fw-bold text-uppercase"><?= _("Profil / Rôle") ?></label>
<select class="form-select shadow-sm fw-bold border-info-subtle" id="codeProfil" name="codeProfil">
<?php liste_options($user_profil, $codeProfil, true); ?>
</select>
</div>
<div class="col-md-4 mb-2">
<label class="form-label small fw-bold text-uppercase"><?= _("En activité ?") ?></label>
<select class="form-select shadow-sm" id="actif" name="actif">
<?php liste_options($user_actif, $actif, true); ?>
</select>
</div>
<div class="col-md-4 mb-2">
<label class="form-label small fw-bold text-uppercase"><?= _("Langue préférée") ?></label>
<select class="form-select shadow-sm" id="codeLangueUser" name="codeLangueUser">
<?php liste_options($langue, $codeLangue, true); ?>
</select>
</div>
</div>
<tr>
<td> <?= _("Profil") ?> </td>
<td>
<SELECT style="font-size:10pt;" class="form-select" id="codeProfil" NAME="codeProfil" autofocus >
<?php liste_options($user_profil, $codeProfil, true); ?>
</SELECT>
</td>
<div class="row mt-4">
<div class="col-12 d-flex justify-content-end gap-2">
<button type="button" class="btn btn-light border px-4 shadow-sm fw-bold" onClick="retour_a_users_rh_client();">
<i class="fas fa-arrow-left me-2"></i><?= _("Annuler") ?>
</button>
<button type="button" id="btn_enreg" class="btn btn-primary px-5 shadow-sm fw-bold" onClick="enregistrer_modif_user_rh();">
<i class="fas fa-save me-2"></i><?= _("Enregistrer les modifications") ?>
</button>
</div>
</div>
</form>
</div>
</div>
<td align="center" class="required"> <?= _("Langue") ?> </td>
<td>
<select class="form-select" id="codeLangueUser" name="codeLangueUser">
<?php liste_options($langue, $codeLangue, true); ?>
</select>
</td>
</tr>
<tr>
<td class="required"> <?= _("Portable") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?= $this->nettoyer($user_rh['telephone']) ?>" AUTOCOMPLETE="OFF" required></td>
<td align="center" class="required"> E-mail </td>
<td ><INPUT style='font-size:10pt;' class="form-control" TYPE="email" id="email" NAME="email" value="<?= $this->nettoyer($user_rh['email']) ?>" placeholder="E-mail" AUTOCOMPLETE="OFF" required></td>
</tr>
<tr>
<td colspan="2">
<button type="button" class="btn btn-light border px-4 shadow-sm fw-bold" onClick="retour_a_users_rh_client();">
<?= _("Annuler") ?>
</button>
</td>
<td colspan="2">
<button type="button" id="btn_enreg" class="btn btn-primary px-5 shadow-sm fw-bold" onClick="enregistrer_modif_user_rh();">
<?= _("Enregistrer les modifications") ?>
</button>
</td>
</tr>
</tbody>
</table>
</div>