From 262715db5e034125fd2f5e9355a40850aaf469fb Mon Sep 17 00:00:00 2001 From: mckmonster Date: Sat, 13 Jul 2024 12:18:39 +0200 Subject: [PATCH] [Notes] Filtrage des affichages - Rajout d'icones - Affichage plus propre --- templates/edu_notes.twig | 8 +++++--- templates/eleve_notes.twig | 20 ++++++++++++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/templates/edu_notes.twig b/templates/edu_notes.twig index 9928ffe..e74cf5a 100644 --- a/templates/edu_notes.twig +++ b/templates/edu_notes.twig @@ -1,14 +1,16 @@
{% for identifier, eleve in eleves|sort %} + {% set filteredEntries = entries|filter(e => e['listefiche5bf_eleve'] == identifier) %} + {% if filteredEntries|default %}
- + {% endif %} {% endfor %}
\ No newline at end of file diff --git a/templates/eleve_notes.twig b/templates/eleve_notes.twig index 6b2c17a..fbc2834 100644 --- a/templates/eleve_notes.twig +++ b/templates/eleve_notes.twig @@ -1,16 +1,28 @@
{% for identifier, matiere in matieres['label'] %} + {% set filteredEntries = entries|filter(e => e['listeListeMatièrebf_matiere'] == identifier) %} + {% if filteredEntries|default %}
- + {% endif %} {% endfor %}
\ No newline at end of file