diff --git a/app/templates/assiduites/pages/calendrier.j2 b/app/templates/assiduites/pages/calendrier.j2 index eff9fe86..79dbbad7 100644 --- a/app/templates/assiduites/pages/calendrier.j2 +++ b/app/templates/assiduites/pages/calendrier.j2 @@ -6,9 +6,9 @@

Assiduité de {{sco.etud.nomprenom}}

- - - + + +
@@ -688,5 +688,17 @@ function isCalendrier() { return true } + + /* --- Mémorisation des checkbox ---- */ + document.querySelectorAll('input[type="checkbox"].memo').forEach(checkbox => { + checkbox.addEventListener('change', function() { + localStorage.setItem(this.id, this.checked); + }); + // Load the saved state + document.querySelectorAll('input[type="checkbox"].memo').forEach(checkbox => { + const checked = localStorage.getItem(checkbox.id) === 'true'; + checkbox.checked = checked; + }); +}); {% endblock pageContent %}