templates/lettre/view.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3. <div class="table-responsive">
  4. <table class="table table-striped table-bordered table-hover">
  5. <thead>
  6.       <tr>
  7.         <th>Destinataires</th>
  8.         <th class="text-center">Date</th>
  9.       </tr>
  10.     </thead>
  11. <tbody>
  12. <tr>
  13. <td>
  14. {% if message.moulin %}
  15. - moulins<br />
  16. {% endif %}
  17. {% if message.confiseur %}
  18. - confiseurs<br />
  19. {% endif %}
  20. {% if message.domaine %}
  21. - domaines<br />
  22. {% endif %}
  23. {% if message.syndicat %}
  24. - syndicats<br />
  25. {% endif %}
  26. {% if message.salaries %}
  27. - salariés<br />
  28. {% endif %}
  29. {% if message.administrateur %}
  30. - administrateurs<br />
  31. {% endif %}
  32. {% if message.syndiclocal %}
  33. - syndicats locaux<br />
  34. {% endif %}
  35. {% if message.association %}
  36. - associations<br />
  37. {% endif %}
  38. {% if message.membre %}
  39. - membres AG AFIDOL<br />
  40. {% endif %}
  41. {% if message.piegeur %}
  42. - piégeurs<br />
  43. {% endif %}
  44. {% if message.mailzones is null %}
  45. {% else %}
  46. <br />
  47. <u>Zones concernées</u> :
  48. <br />
  49. {% for mz in message.mailzones %}
  50. <p>{{  mz.name }}</p>
  51. {% endfor %}
  52. {% endif %}
  53. <td  class="text-center">
  54. {{ message.date|date("d/m/Y") }}
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. <p> <b>Objet</b> : {{ message.titre|UTF8Decode|HtmlEntityDecode }}</p>
  60. <p>{% set tex = message.texte|UTF8Decode  %}
  61. {% autoescape false %}
  62. {{ tex }}
  63. </p>
  64. <hr>
  65. <p>{{ message.nombre }} mails envoyés à :</p>
  66. <p>{{ message.destinataires }}</p>
  67. {% endautoescape %}
  68. {% endblock %}