From 4f0294b5de5e37d3727c9bae41d406754ff98639 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 16 Mar 2022 00:13:58 +0100 Subject: [PATCH] style appreciations sur bul. classic --- app/scodoc/sco_bulletins.py | 2 ++ app/templates/bul_foot.html | 47 +++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/app/scodoc/sco_bulletins.py b/app/scodoc/sco_bulletins.py index ae73929b3..46101451e 100644 --- a/app/scodoc/sco_bulletins.py +++ b/app/scodoc/sco_bulletins.py @@ -823,6 +823,8 @@ def formsemestre_bulletinetud( bulletin, render_template( "bul_foot.html", + appreciations=None, # déjà affichées + css_class="bul_classic_foot", etud=etud, formsemestre=formsemestre, inscription_courante=etud.inscription_courante(), diff --git a/app/templates/bul_foot.html b/app/templates/bul_foot.html index 9addd770f..09a8d2006 100644 --- a/app/templates/bul_foot.html +++ b/app/templates/bul_foot.html @@ -1,7 +1,7 @@ {# -*- mode: jinja-html -*- #} {# Pied des bulletins HTML #} -
+

Situation actuelle: {% if inscription_courante %} @@ -15,28 +15,29 @@ {% endif %}

-
-

Appréciations

- {% for app in appreciations %} -

{{app.date}}{{ - app.comment}}{% if can_edit_appreciations %}modifier - supprimer{% endif %} - -

- {% endfor %} - {% if can_edit_appreciations %} -

Ajouter une appréciation -

- {% endif %} -
- + {% if appreciations is not none %} +
+

Appréciations

+ {% for app in appreciations %} +

{{app.date}}{{ + app.comment}}{% if can_edit_appreciations %}modifier + supprimer{% endif %} + +

+ {% endfor %} + {% if can_edit_appreciations %} +

Ajouter une appréciation +

+ {% endif %} +
+ {% endif %} {% if formsemestre.modalite == "EXT" %}