summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-05-16 16:11:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-05-16 16:11:28 (GMT)
commite2228972a5a68f6ca6877893d2dbd389a333fe03 (patch)
tree3b7d112d5dc324e752d3411c622e6658b1af7f2a
parent4c5323ff3244635fe92b7354cc6a8f0cb6f9d0a1 (diff)
downloadwelco-0.29.zip
welco-0.29.tar.gz
welco-0.29.tar.bz2
mail: fix mail summary to not include mandatory avis twicev0.29
-rw-r--r--welco/sources/mail/templates/welco/mail_summary.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/welco/sources/mail/templates/welco/mail_summary.html b/welco/sources/mail/templates/welco/mail_summary.html
index 5b1cd79..90ce703 100644
--- a/welco/sources/mail/templates/welco/mail_summary.html
+++ b/welco/sources/mail/templates/welco/mail_summary.html
@@ -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 %}