mail: fix mail summary to not include mandatory avis twice

This commit is contained in:
Frédéric Péters 2016-05-16 18:11:28 +02:00
parent 4c5323ff32
commit e2228972a5
1 changed files with 4 additions and 5 deletions

View File

@ -48,12 +48,11 @@
</div>
{% endif %}
{% if object.get_mandatory_avis|length %}
<div class="bo-block
{% for avis in object.get_mandatory_avis %}{% if not avis.comments %} important {% endif %}{% endfor %}">
<strong>{% trans "Mandatory Avis" %}</strong>
{% if object.get_avis|length %}
<div class="bo-block">
<strong>{% trans "Avis" %}</strong>
<ul>
{% for avis in object.get_mandatory_avis %}
{% for avis in object.get_avis %}
<li>{{avis.role_name}}:
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
{% endfor %}