mail: fix mail summary to not include mandatory avis twice
This commit is contained in:
parent
4c5323ff32
commit
e2228972a5
|
@ -48,12 +48,11 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if object.get_mandatory_avis|length %}
|
{% if object.get_avis|length %}
|
||||||
<div class="bo-block
|
<div class="bo-block">
|
||||||
{% for avis in object.get_mandatory_avis %}{% if not avis.comments %} important {% endif %}{% endfor %}">
|
<strong>{% trans "Avis" %}</strong>
|
||||||
<strong>{% trans "Mandatory Avis" %}</strong>
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for avis in object.get_mandatory_avis %}
|
{% for avis in object.get_avis %}
|
||||||
<li>{{avis.role_name}}:
|
<li>{{avis.role_name}}:
|
||||||
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
|
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue