{% extends 'base.html.twig' %}
{% block body %}
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Destinataires</th>
<th class="text-center">Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{% if message.moulin %}
- moulins<br />
{% endif %}
{% if message.confiseur %}
- confiseurs<br />
{% endif %}
{% if message.domaine %}
- domaines<br />
{% endif %}
{% if message.syndicat %}
- syndicats<br />
{% endif %}
{% if message.salaries %}
- salariés<br />
{% endif %}
{% if message.administrateur %}
- administrateurs<br />
{% endif %}
{% if message.syndiclocal %}
- syndicats locaux<br />
{% endif %}
{% if message.association %}
- associations<br />
{% endif %}
{% if message.membre %}
- membres AG AFIDOL<br />
{% endif %}
{% if message.piegeur %}
- piégeurs<br />
{% endif %}
{% if message.mailzones is null %}
{% else %}
<br />
<u>Zones concernées</u> :
<br />
{% for mz in message.mailzones %}
<p>{{ mz.name }}</p>
{% endfor %}
{% endif %}
<td class="text-center">
{{ message.date|date("d/m/Y") }}
</td>
</tr>
</tbody>
</table>
<p> <b>Objet</b> : {{ message.titre|UTF8Decode|HtmlEntityDecode }}</p>
<p>{% set tex = message.texte|UTF8Decode %}
{% autoescape false %}
{{ tex }}
</p>
<hr>
<p>{{ message.nombre }} mails envoyés à :</p>
<p>{{ message.destinataires }}</p>
{% endautoescape %}
{% endblock %}