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 #} -<div class="bul_foot"> +<div class="{{css_class or "bul_foot"}}"> <div> <p>Situation actuelle: {% if inscription_courante %} @@ -15,28 +15,29 @@ {% endif %} </p> - <div class="bull_appreciations"> - <h3>Appréciations</h3> - {% for app in appreciations %} - <p><span class="bull_appreciations_date">{{app.date}}</span>{{ - app.comment}}<span - class="bull_appreciations_link">{% if can_edit_appreciations %}<a - class="stdlink" href="{{url_for('notes.appreciation_add_form', - scodoc_dept=g.scodoc_dept, id=app.id)}}">modifier</a> - <a class="stdlink" href="{{url_for('notes.appreciation_add_form', - scodoc_dept=g.scodoc_dept, id=app.id, suppress=1)}}">supprimer</a>{% endif %} - </span> - </p> - {% endfor %} - {% if can_edit_appreciations %} - <p><a class="stdlink" href="{{url_for( - 'notes.appreciation_add_form', scodoc_dept=g.scodoc_dept, - etudid=etud.id, formsemestre_id=formsemestre_id) - }}">Ajouter une appréciation</a> - </p> - {% endif %} - </div> - + {% if appreciations is not none %} + <div class="bull_appreciations"> + <h3>Appréciations</h3> + {% for app in appreciations %} + <p><span class="bull_appreciations_date">{{app.date}}</span>{{ + app.comment}}<span + class="bull_appreciations_link">{% if can_edit_appreciations %}<a + class="stdlink" href="{{url_for('notes.appreciation_add_form', + scodoc_dept=g.scodoc_dept, id=app.id)}}">modifier</a> + <a class="stdlink" href="{{url_for('notes.appreciation_add_form', + scodoc_dept=g.scodoc_dept, id=app.id, suppress=1)}}">supprimer</a>{% endif %} + </span> + </p> + {% endfor %} + {% if can_edit_appreciations %} + <p><a class="stdlink" href="{{url_for( + 'notes.appreciation_add_form', scodoc_dept=g.scodoc_dept, + etudid=etud.id, formsemestre_id=formsemestre_id) + }}">Ajouter une appréciation</a> + </p> + {% endif %} + </div> + {% endif %} {% if formsemestre.modalite == "EXT" %} <p><a href="{{ url_for('notes.formsemestre_ext_edit_ue_validations',