a
This commit is contained in:
parent
8ace1794e2
commit
c72c28c33f
|
|
@ -19,11 +19,11 @@
|
|||
</span>
|
||||
</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">
|
||||
<tr >
|
||||
<th class="ps-4" width="12%"><?= _("Identifiant") ?></th>
|
||||
<th width="20%"><?= _("Nom Complet") ?></th>
|
||||
<th class="text-center" width="8%"><?= _("Langue") ?></th>
|
||||
|
|
@ -51,65 +51,22 @@
|
|||
</td>
|
||||
|
||||
<td>
|
||||
<div class="fw-bold text-dark"><?= $this->nettoyer($user_client['utilisateur']) ?></div>
|
||||
<?= $this->nettoyer($user_client['utilisateur']) ?>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<span class="badge border text-dark bg-white shadow-xs fw-bold">
|
||||
<?= strtoupper($codeLangue) ?>
|
||||
</span>
|
||||
<?= strtoupper($codeLangue) ?>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<span class="badge bg-info-subtle text-info border border-info-subtle px-2 py-1">
|
||||
<i class="fas fa-user-shield me-1 small"></i><?= $this->nettoyer($libelleProfil) ?>
|
||||
</span>
|
||||
<?= $this->nettoyer($libelleProfil) ?>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<?php if($actif === 1): ?>
|
||||
<button class="btn btn-sm btn-outline-success rounded-pill px-3 fw-bold"
|
||||
onClick="desactiver_user_rh_client('<?= $codeUtilisateur ?>');">
|
||||
<i class="fas fa-check-circle me-1"></i> <?= _("Actif") ?>
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<button class="btn btn-sm btn-outline-danger rounded-pill px-3 fw-bold"
|
||||
onClick="activer_user_rh_client('<?= $codeUtilisateur ?>');">
|
||||
<i class="fas fa-ban me-1"></i> <?= _("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>
|
||||
</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