welco/welco/sources/mail/templates/welco/mail_summary.html

41 lines
1.1 KiB
HTML
Raw Normal View History

{% load i18n %}
<p class="thumbnail">
<a href="{{ site_base }}{{ object.content.url }}">
<img src="{{ site_base }}{{ object.content.url }}.png" alt=""/>
</a>
</p>
{% if object.associations.all|length > 1 %}
<strong>{% trans 'Mail with multiple formdata:' %}</strong>
<ul>
{% for association in object.associations.all %}
<li><a href="{{association.formdata_url}}">{{association.formdef_name}}</a></li>
{% endfor %}
</ul>
{% endif %}
2015-10-11 17:40:51 +02:00
{% if object.get_avis|length %}
<div class="bo-block">
2015-10-11 17:40:51 +02:00
<strong>{% trans "Avis" %}</strong>
<ul>
{% for avis in object.get_avis %}
<li>{{avis.role_name}}: {% firstof avis.comments '-' %}</li>
{% endfor %}
</ul>
</div>
2015-10-11 17:40:51 +02:00
{% 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 %}">
2015-10-11 17:40:51 +02:00
<strong>{% trans "Mandatory Avis" %}</strong>
<ul>
{% for avis in object.get_mandatory_avis %}
<li>{{avis.role_name}}:
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
{% endfor %}
</ul>
</div>
2015-10-11 17:40:51 +02:00
{% endif %}