der
This commit is contained in:
parent
2a274fc051
commit
e4a0b7aa37
|
|
@ -1,9 +1,18 @@
|
|||
<?php
|
||||
$adminProd = $_SESSION['adminProd'];
|
||||
$nbligne = count($actes);
|
||||
?>
|
||||
|
||||
<?php if(count($actes) > 0): ?>
|
||||
<div class="table-responsive shadow-sm rounded">
|
||||
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center">
|
||||
<h6 class="mb-0 fw-bold border-bottom bg-light text-uppercase small">
|
||||
<i class="fas fa-list me-2"></i><?= _("Liste des lettres clés paramétrées") ?>
|
||||
</h6>
|
||||
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold" id="badge-total-garants">
|
||||
<?= $nbligne ?> <?= ($nbligne > 1) ? _("Lignes") : _("Ligne") ?>
|
||||
</span>
|
||||
</div>
|
||||
<table class="table table-sm table-hover table-bordered align-middle mb-0 text-nowrap">
|
||||
<thead class="table-light border-bottom">
|
||||
<tr class="text-center text-uppercase small fw-bold text-muted">
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
<div class="card border-0 shadow-sm overflow-hidden animate__animated animate__fadeIn">
|
||||
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center">
|
||||
<h6 class="mb-0 fw-bold text-muted text-uppercase small">
|
||||
<i class="fas fa-list me-2"></i><?= _("Liste des Porteurs de Risque") ?>
|
||||
<h6 class="mb-0 fw-bold border-bottom bg-light text-uppercase small">
|
||||
<i class="fas fa-list me-2"></i><?= _("Liste des Garants") ?>
|
||||
</h6>
|
||||
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold" id="badge-total-garants">
|
||||
<?= $nbligne ?> <?= ($nbligne > 1) ? _("Lignes") : _("Ligne") ?>
|
||||
|
|
|
|||
|
|
@ -66,17 +66,27 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Initialisation SelectPicker
|
||||
if (typeof actualiserSelectPicker === 'function') {
|
||||
actualiserSelectPicker('#typeGarant', false);
|
||||
} else {
|
||||
$('#typeGarant').selectpicker({ container: 'body', liveSearch: true });
|
||||
// Exemple d'initialisation sans jQuery :
|
||||
const typeGarant = document.querySelector('#typeGarant');
|
||||
if (typeGarant) {
|
||||
// Ici tu devras remplacer par l’équivalent natif ou une lib JS
|
||||
// car selectpicker est une extension jQuery Bootstrap.
|
||||
// Exemple : activer la recherche live avec un plugin custom
|
||||
console.log("Initialiser selectpicker manuellement ou via une alternative JS");
|
||||
}
|
||||
}
|
||||
|
||||
// Focus Neutral Pro
|
||||
setTimeout(function() {
|
||||
$('#libelle').focus();
|
||||
const libelle = document.querySelector('#libelle');
|
||||
if (libelle) {
|
||||
libelle.focus();
|
||||
}
|
||||
}, 200);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user