This commit is contained in:
KONE SOREL 2026-04-09 15:08:34 +00:00
parent 2a274fc051
commit e4a0b7aa37
3 changed files with 24 additions and 5 deletions

View File

@ -1,9 +1,18 @@
<?php <?php
$adminProd = $_SESSION['adminProd']; $adminProd = $_SESSION['adminProd'];
$nbligne = count($actes);
?> ?>
<?php if(count($actes) > 0): ?> <?php if(count($actes) > 0): ?>
<div class="table-responsive shadow-sm rounded"> <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"> <table class="table table-sm table-hover table-bordered align-middle mb-0 text-nowrap">
<thead class="table-light border-bottom"> <thead class="table-light border-bottom">
<tr class="text-center text-uppercase small fw-bold text-muted"> <tr class="text-center text-uppercase small fw-bold text-muted">

View File

@ -5,8 +5,8 @@
<div class="card border-0 shadow-sm overflow-hidden animate__animated animate__fadeIn"> <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"> <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"> <h6 class="mb-0 fw-bold border-bottom bg-light text-uppercase small">
<i class="fas fa-list me-2"></i><?= _("Liste des Porteurs de Risque") ?> <i class="fas fa-list me-2"></i><?= _("Liste des Garants") ?>
</h6> </h6>
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold" id="badge-total-garants"> <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") ?> <?= $nbligne ?> <?= ($nbligne > 1) ? _("Lignes") : _("Ligne") ?>

View File

@ -66,17 +66,27 @@
</div> </div>
<script> <script>
$(document).ready(function() { document.addEventListener("DOMContentLoaded", function() {
// Initialisation SelectPicker // Initialisation SelectPicker
if (typeof actualiserSelectPicker === 'function') { if (typeof actualiserSelectPicker === 'function') {
actualiserSelectPicker('#typeGarant', false); actualiserSelectPicker('#typeGarant', false);
} else { } 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 // Focus Neutral Pro
setTimeout(function() { setTimeout(function() {
$('#libelle').focus(); const libelle = document.querySelector('#libelle');
if (libelle) {
libelle.focus();
}
}, 200); }, 200);
}); });
</script> </script>