Merge branch 'main' of git.ebene.ovh:ebene/radiantrh

This commit is contained in:
KANE LAZENI 2026-01-03 13:10:46 +00:00
commit d82223219e
2 changed files with 123 additions and 142 deletions

View File

@ -33,7 +33,7 @@
</div> </div>
<div class="row mb-3 g-3 mt-1"> <div class="row mb-3 g-3 mt-1">
<div class="col-md-4"> <div class="col-md-7">
<div class="input-group shadow-sm"> <div class="input-group shadow-sm">
<span class="input-group-text bg-white border-end-0 text-muted"><i class="fas fa-search"></i></span> <span class="input-group-text bg-white border-end-0 text-muted"><i class="fas fa-search"></i></span>
<input type="text" id="customSearch" class="form-control border-start-0 ps-0" placeholder="<?= _('Recherche globale...') ?>"> <input type="text" id="customSearch" class="form-control border-start-0 ps-0" placeholder="<?= _('Recherche globale...') ?>">
@ -47,13 +47,6 @@
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</div> </div>
<div class="col-md-3">
<select class="form-select shadow-sm" id="statusFilter">
<option value=""><?= _("Tous les statuts") ?></option>
<option value="status-actif">🟢 <?= _("Actifs") ?></option>
<option value="status-archive">🟠 <?= _("Archivés") ?></option>
</select>
</div>
<div class="col-md-2 text-end"> <div class="col-md-2 text-end">
<button class="btn btn-outline-primary shadow-sm w-100" onclick="javascript:afficher_adherents_police();"> <button class="btn btn-outline-primary shadow-sm w-100" onclick="javascript:afficher_adherents_police();">
<i class="fas fa-sync-alt"></i> <i class="fas fa-sync-alt"></i>
@ -70,7 +63,7 @@
<th class="text-center"><?= _("Collège") ?></th> <th class="text-center"><?= _("Collège") ?></th>
<th class="text-center"><?= _("Période") ?></th> <th class="text-center"><?= _("Période") ?></th>
<th class="text-center no-export"><?= _("Actions") ?></th> <th class="text-center no-export"><?= _("Actions") ?></th>
<th class="d-none">StatusClass</th> </tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach ($adherents as $adherent): <?php foreach ($adherents as $adherent):
@ -104,7 +97,6 @@
<i class="fas fa-user-edit text-primary"></i> <i class="fas fa-user-edit text-primary"></i>
</button> </button>
</td> </td>
<td class="d-none"><?= $statusClass ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
@ -135,11 +127,5 @@
$('#collegeFilter').on('change', function() { $('#collegeFilter').on('change', function() {
table.column(2).search(this.value).draw(); table.column(2).search(this.value).draw();
}); });
// Filtre par Statut (Colonne 5 - cachée)
$('#statusFilter').on('change', function() {
table.column(5).search(this.value).draw();
});
}); });
</script> </script>

View File

@ -12,14 +12,9 @@
<h4 class="fw-bold text-secondary mb-0"> <h4 class="fw-bold text-secondary mb-0">
<?= _("POLICE") ?> : <span class="badge bg-white text-primary ms-2"><?= $this->nettoyer($_SESSION['numeroPolice_C']) ?></span> <?= _("POLICE") ?> : <span class="badge bg-white text-primary ms-2"><?= $this->nettoyer($_SESSION['numeroPolice_C']) ?></span>
</h4> </h4>
</div> <button type="button" class="btn btn-light btn-sm fw-bold shadow-sm" onclick="javascript:afficher_adherents_police();">
<i class="fas fa-sync-alt me-2 text-primary"></i> <?= _("Actualiser la liste") ?>
<div class="card shadow-sm border-0 mb-4 bg-office-primary-lighter text-white"> </button>
<div class="card-body d-flex align-items-center justify-content-between p-3">
<button type="button" class="btn btn-light btn-sm fw-bold shadow-sm w-100" onclick="javascript:afficher_adherents_police();">
<i class="fas fa-sync-alt me-2 text-primary"></i> <?= _("Actualiser la liste") ?>
</button>
</div>
</div> </div>
<input type="hidden" id="prestationPossible" name="prestationPossible" value="<?= $prestationPossible ?>"> <input type="hidden" id="prestationPossible" name="prestationPossible" value="<?= $prestationPossible ?>">