ser
This commit is contained in:
parent
fe8ea6e1b1
commit
33fbab7568
|
|
@ -4,12 +4,12 @@
|
|||
$nomClient = $this->nettoyer($client['nom']);
|
||||
?>
|
||||
|
||||
<input class="visually-hidden" type="text" id="idClient" value="<?= $idClient ?>">
|
||||
<input class="sr-only" type="text" id="idClient" value="<?= $idClient ?>">
|
||||
|
||||
<div id="div_liste" class="container-fluid py-3 animate__animated animate__fadeIn">
|
||||
<h1 class="text-primary"><i class="fas fa-users-cog me-2"></i> <?= _("Utilisateurs Portail RH") ?></h1>
|
||||
<div id="div_liste">
|
||||
<h1 class="text-primary"><?= _("Utilisateurs Portail RH") ?></h1>
|
||||
|
||||
<div class="card-header d-flex justify-content-between align-items-center py-1">
|
||||
<div >
|
||||
<h5 class="mb-0 fw-bold">
|
||||
<span class="fw-normal text-dark-50"><?= $nomClient ?></span>
|
||||
</h5>
|
||||
|
|
@ -20,17 +20,17 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm border-0">
|
||||
<div >
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0 tabliste compact">
|
||||
<table class="table table-hover">
|
||||
<thead class="table-light">
|
||||
<tr class="small text-uppercase text-muted border-bottom">
|
||||
<th class="ps-4" width="12%"><?= _("Identifiant") ?></th>
|
||||
<th width="12%"><?= _("Identifiant") ?></th>
|
||||
<th width="20%"><?= _("Nom Complet") ?></th>
|
||||
<th class="text-center" width="8%"><?= _("Langue") ?></th>
|
||||
<th class="text-center" width="15%"><?= _("Profil / Rôle") ?></th>
|
||||
<th class="text-center" width="15%"><?= _("Statut") ?></th>
|
||||
<th class="text-center pe-4" width="12%"><?= _("Actions") ?></th>
|
||||
<th colspan= "2" class="text-center"><?= _("Actions") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -69,48 +69,37 @@
|
|||
|
||||
<td class="text-center">
|
||||
<?php if($actif === 1): ?>
|
||||
<button class="btn btn-sm btn-outline-success rounded-pill px-3 fw-bold"
|
||||
<button class="form-control btn btn-primary"
|
||||
onClick="desactiver_user_rh_client('<?= $codeUtilisateur ?>');">
|
||||
<i class="fas fa-check-circle me-1"></i> <?= _("Actif") ?>
|
||||
<?= _("Actif") ?>
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<button class="btn btn-sm btn-outline-danger rounded-pill px-3 fw-bold"
|
||||
<button class="form-control btn btn-danger"
|
||||
onClick="activer_user_rh_client('<?= $codeUtilisateur ?>');">
|
||||
<i class="fas fa-ban me-1"></i> <?= _("Bloqué") ?>
|
||||
<?= _("Bloqué") ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td class="text-center pe-4">
|
||||
<div class="btn-group shadow-sm">
|
||||
<button class="btn btn-outline-secondary btn-sm"
|
||||
title="<?= _("Modifier") ?>"
|
||||
onClick="afficher_users_client_id(<?= $idUtilisateur ?>);">
|
||||
<i class="fas fa-edit"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary btn-sm <?= ($reInit === 1) ? 'text-danger fw-bold' : '' ?>"
|
||||
title="<?= _("Ré-initialiser mot de passe") ?>"
|
||||
onClick="reinitpaswd_user_rh('<?= $codeUtilisateur ?>');">
|
||||
<i class="fas fa-key"></i>
|
||||
</button>
|
||||
</div>
|
||||
<td class="text-center">
|
||||
<button class="form-control btn btn-secondary"
|
||||
title="<?= _("Modifier") ?>"
|
||||
onClick="afficher_users_client_id(<?= $idUtilisateur ?>);">
|
||||
<?= _("Modifier") ?>
|
||||
</button>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<button class="form-control btn btn-warning <?= ($reInit === 1) ? 'text-danger fw-bold' : '' ?>"
|
||||
title="<?= _("Ré-initialiser mot de passe") ?>"
|
||||
onClick="reinitpaswd_user_rh('<?= $codeUtilisateur ?>');">
|
||||
<?= _("Ré-init") ?>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card-footer bg-white text-muted small py-2">
|
||||
<i class="fas fa-info-circle me-1"></i>
|
||||
<?= _("Les comptes bloqués ne peuvent plus se connecter au portail.") ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.shadow-xs { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
|
||||
.table-hover tbody tr:hover { background-color: rgba(13, 110, 253, 0.02) !important; }
|
||||
.btn-group .btn { padding: 0.4rem 0.6rem; }
|
||||
.btn-outline-secondary:hover { background-color: #f8f9fa; color: #0d6efd; }
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user