mail: add a .important class to missing required avis (#8717)

This commit is contained in:
Frédéric Péters 2015-10-28 16:39:35 +01:00
parent d7999bf7b2
commit 624adf7478
1 changed files with 5 additions and 0 deletions

View File

@ -15,15 +15,19 @@
{% endif %}
{% if object.get_avis|length %}
<div class="bo-block">
<strong>{% trans "Avis" %}</strong>
<ul>
{% for avis in object.get_avis %}
<li>{{avis.role_name}}: {% firstof avis.comments '-' %}</li>
{% endfor %}
</ul>
</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>
<ul>
{% for avis in object.get_mandatory_avis %}
@ -31,5 +35,6 @@
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
{% endfor %}
</ul>
</div>
{% endif %}