fg
This commit is contained in:
parent
88c7afcdbc
commit
41ac9cbc5a
|
|
@ -8,17 +8,21 @@
|
|||
<h5 class="card-title mb-0 text-success fw-bold">
|
||||
<i class="fas fa-list-ul me-2"></i><?= _("Liste des Secteurs d'Activité") ?>
|
||||
</h5>
|
||||
<span class="badge rounded-pill bg-success px-3 shadow-sm" style="font-size: 0.9rem;">
|
||||
<?= _("Total") ?> : <span id="total_lignes"><?= $displayTotal; ?></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div id="table-buttons"></div>
|
||||
|
||||
<span id="badge-total" class="badge rounded-pill bg-success px-3 py-2 shadow-sm" style="font-size: 0.85rem;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="tableLister" class="table table-hover align-middle border-light">
|
||||
<table id="tableLister" class="table table-hover align-middle">
|
||||
<thead class="bg-light-25 text-muted small fw-bold">
|
||||
<tr>
|
||||
<th class="text-center border-0" width="15%"><?= _("Centre gestion") ?></th>
|
||||
<th class="text-center border-0" width="15%"><?= _("Centre") ?></th>
|
||||
<th class="text-center border-0" width="10%"><?= _("Code") ?></th>
|
||||
<th class="text-start border-0" width="60%"><?= _("Libellé") ?></th>
|
||||
<th class="text-center border-0" width="15%"><?= _("Action") ?></th>
|
||||
|
|
@ -52,21 +56,7 @@
|
|||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Initialisation de la DataTable si la fonction existe
|
||||
if (typeof initDataTableReference === "function") {
|
||||
initDataTableReference('#tableLister');
|
||||
}
|
||||
// On passe l'ID de la table et le nom souhaité pour le fichier exporté
|
||||
initDataTableReference('#tableLister', 'Secteurs_Activite_' + new Date().getFullYear());
|
||||
});
|
||||
|
||||
/**
|
||||
* Cette fonction fait partie de ton standard Neutral Pro
|
||||
* Elle s'assure que le bouton "Modifier" déclenche l'UI bleue
|
||||
*/
|
||||
function editerSecteur(id) {
|
||||
// 1. Appel de la fonction de modification globale
|
||||
formModifTableRef(id);
|
||||
|
||||
// 2. On scroll doucement vers le formulaire qui va s'ouvrir en haut
|
||||
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user