val
This commit is contained in:
parent
f2d12f779d
commit
6bf9be2e3a
|
|
@ -73,6 +73,7 @@
|
|||
<h2 class="accordion-header" data-bs-toggle="collapse" data-bs-target="#contratsCollapse">
|
||||
<i class="fas fa-file-contract text-primary"></i>
|
||||
<span class="accordion-title"><?= _("Contrats santé")?></span>
|
||||
<i class="accordion-icon bi bi-chevron-down"></i>
|
||||
</h2>
|
||||
<div id="contratsCollapse"
|
||||
class="accordion-collapse collapse"
|
||||
|
|
@ -88,8 +89,10 @@
|
|||
<!-- Section Graphiques -->
|
||||
<section class="accordion-section">
|
||||
<h2 class="accordion-header" data-bs-toggle="collapse" data-bs-target="#graphiqueCollapse">
|
||||
<i class="fas fa-chart-line text-primary"></i>
|
||||
<span class="accordion-title"><?= _("Graphiques sinistres")?></span>
|
||||
<i class="fas fa-chart-line text-primary"></i>
|
||||
<span class="accordion-title"><?= _("Graphiques sinistres")?></span>
|
||||
<!-- Icône conservée -->
|
||||
<i class="accordion-icon bi bi-chevron-down"></i>
|
||||
</h2>
|
||||
<div id="graphiqueCollapse"
|
||||
class="accordion-collapse collapse"
|
||||
|
|
@ -128,6 +131,10 @@
|
|||
if (fnName && typeof window[fnName] === 'function') {
|
||||
window[fnName]();
|
||||
}
|
||||
|
||||
// Changer l’icône en chevron-up
|
||||
const header = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon');
|
||||
if (header) header.classList.replace('bi-chevron-down', 'bi-chevron-up');
|
||||
});
|
||||
|
||||
// Quand une section se ferme
|
||||
|
|
@ -136,6 +143,10 @@
|
|||
if (fnName && typeof window[fnName] === 'function') {
|
||||
window[fnName]();
|
||||
}
|
||||
|
||||
// Remettre l’icône en chevron-down
|
||||
const header = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon');
|
||||
if (header) header.classList.replace('bi-chevron-up', 'bi-chevron-down');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user