summary: include list of formdatas if there are multiple ones (#8517)

This commit is contained in:
Frédéric Péters 2015-10-11 17:24:02 +02:00
parent f3971403a3
commit d71e590d63
1 changed files with 9 additions and 0 deletions

View File

@ -4,3 +4,12 @@
<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 %}