dfr
This commit is contained in:
parent
57a2fa6c91
commit
385059bf64
|
|
@ -1,35 +1,86 @@
|
||||||
|
<div class="page-content animate__animated animate__fadeIn">
|
||||||
|
<div class="header-section mb-4">
|
||||||
|
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
|
||||||
|
<div class="d-flex align-items-center">
|
||||||
|
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
|
||||||
|
<i class="fas fa-users-class fs-4"></i>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4 class="mb-0 fw-bold text-uppercase"><?= _("Collèges Types") ?></h4>
|
||||||
|
<p class="text-muted small mb-0"><?= _("Gestion des catégories de collèges pour les contrats") ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm btn-sm" onclick="nouveau_college_type();">
|
||||||
|
<i class="fas fa-plus me-1"></i> <?= _("Nouveau Collège") ?>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card border-0 shadow-sm">
|
||||||
|
<div class="card-body p-0">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-hover align-middle mb-0 datatable-colleges" style="width:100%; font-size: 9.5pt;">
|
||||||
|
<thead class="bg-light">
|
||||||
|
<tr>
|
||||||
|
<th class="py-3 ps-3 text-center" width="15%">Code</th>
|
||||||
|
<th class="py-3"><?= _("Libellé") ?></th>
|
||||||
|
<th class="py-3 text-center" width="15%"><?= _("Actions") ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($donnees as $v):
|
||||||
|
$idTable = $this->nettoyer($v['id']);
|
||||||
|
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="ps-3 text-center fw-bold text-primary">
|
||||||
|
<span class="badge bg-primary-ghost text-primary px-3"><?= $this->nettoyer($v['codeCollegeType']) ?></span>
|
||||||
|
</td>
|
||||||
|
<td class="fw-bold text-dark"><?= $libelle ?></td>
|
||||||
|
<td class="text-center">
|
||||||
|
<div class="btn-group shadow-xs rounded-pill bg-white border p-1">
|
||||||
|
<button class="btn btn-link btn-sm text-warning p-1 mx-1 action-icon"
|
||||||
|
title="<?= _("Modifier") ?>"
|
||||||
|
onClick="modifier_college_type(<?= $idTable ?>);">
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</button>
|
||||||
|
<button class="btn btn-link btn-sm text-danger-light p-1 mx-1 action-icon d-none"
|
||||||
|
title="<?= _("Supprimer") ?>"
|
||||||
|
onClick="supprimer_college_type(<?= $idTable ?>);">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<legend> <?= _("liste des Collèges types") ?> </legend>
|
<div id="div_nouveaucollegetype" class="modal fade animate__animated animate__fadeInDown">
|
||||||
|
</div>
|
||||||
|
|
||||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
|
<style>
|
||||||
<thead>
|
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||||
<tr>
|
.btn-link { text-decoration: none; border: none; background: transparent; transition: all 0.2s ease-in-out; }
|
||||||
<th style="text-align:center" >Code</th>
|
.action-icon:hover { transform: scale(1.25); }
|
||||||
<th style="text-align:center" > <?= _("Libellé") ?> </th>
|
|
||||||
<th style="text-align:center" > <?= _("Modifier") ?> </th>
|
/* Style spécifique pour le bouton d'édition dans le tableau */
|
||||||
<!--<th style="text-align:center" > <?= _("Supprimer") ?> </th>-->
|
.text-warning { color: #f39c12 !important; }
|
||||||
</tr>
|
|
||||||
</thead>
|
.datatable-colleges thead th { vertical-align: middle; border-bottom: 2px solid #eee; }
|
||||||
<tbody>
|
.table-hover tbody tr:hover { background-color: rgba(33, 46, 83, 0.02); }
|
||||||
<?php foreach ($donnees as $v):
|
</style>
|
||||||
$idTable = $this->nettoyer($v['id']);
|
|
||||||
|
|
||||||
$libelle = $this->nettoyer($v['libelle']);
|
|
||||||
if (est_anglophone()){
|
|
||||||
$libelle = $this->nettoyer($v['libelleEng']);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<tr valign="top">
|
|
||||||
<td align="center"> <?= $this->nettoyer($v['codeCollegeType']) ?> </td>
|
|
||||||
<td> <?= $libelle ?> </td>
|
|
||||||
<td width="10%" align="center"> <input class = "form-control btn btn-primary" style="font-size:10pt;" type="button" value="<?= _("Modifier") ?>" onClick="javascript:modifier_college_type(<?= $idTable ?>);"> </td>
|
|
||||||
<!--<td width="10%" align="center"> <input class = "form-control btn btn-danger" style="font-size:10pt;" type="button" value="<?= _("Supprimer") ?>" onClick="javascript:supprimer_college_type(<?= $idTable ?>);"> </td>-->
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div id="div_nouveaucollegetype" class="modal fade">
|
<script>
|
||||||
|
// Initialisation automatique de la SmartTable
|
||||||
</div>
|
var checkDTColleges = setInterval(function() {
|
||||||
|
if (typeof initSmartTable === 'function') {
|
||||||
|
initSmartTable('.datatable-colleges', 'Liste_Colleges_Types', false);
|
||||||
|
clearInterval(checkDTColleges);
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user