style appreciations sur bul. classic

This commit is contained in:
Emmanuel Viennet 2022-03-16 00:13:58 +01:00
parent cd299169e0
commit 4f0294b5de
2 changed files with 26 additions and 23 deletions

View File

@ -823,6 +823,8 @@ def formsemestre_bulletinetud(
bulletin, bulletin,
render_template( render_template(
"bul_foot.html", "bul_foot.html",
appreciations=None, # déjà affichées
css_class="bul_classic_foot",
etud=etud, etud=etud,
formsemestre=formsemestre, formsemestre=formsemestre,
inscription_courante=etud.inscription_courante(), inscription_courante=etud.inscription_courante(),

View File

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