mail: add a .important class to missing required avis (#8717)
This commit is contained in:
parent
d7999bf7b2
commit
624adf7478
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue