mailinglist.template.html.twig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Nos prochains événements</title>
  6. </head>
  7. <body style="margin:0; padding:0; background-color:#f0f4f8;">
  8. <center style="width:100%; background-color:#f0f4f8;">
  9. <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
  10. <tr>
  11. <td align="center">
  12. <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" style="background-color:#ffffff;">
  13. <!-- HEADER -->
  14. <tr>
  15. <td style="padding:20px; text-align:center; background-color:#0066cc; color:#ffffff; font-family:Arial, Helvetica, sans-serif;">
  16. <h1 style="margin:0; font-size:24px;">✨ Nos événements du mois ✨</h1>
  17. </td>
  18. </tr>
  19. <!-- INTRO -->
  20. <tr>
  21. <td style="padding:20px; font-family:Arial, Helvetica, sans-serif; font-size:15px; color:#333333; line-height:1.6;">
  22. <p>
  23. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  24. Sed feugiat, sapien ut pulvinar luctus, ex metus tincidunt ante,
  25. non egestas mauris velit nec libero. Praesent at luctus nunc.
  26. </p>
  27. </td>
  28. </tr>
  29. {% for event in events %}
  30. <!-- ÉVÉNEMENT -->
  31. <tr>
  32. <td style="border-bottom:1px solid #e0e0e0;">
  33. <!-- Image -->
  34. <img src="{{ ('/events/' ~ (event.picture ?: 'placeholder.webp'))|base64img }}" alt="{{ event.name }}" width="600" height="200"
  35. style="display:block; border:0; margin:0; padding:0;">
  36. <!-- Contenu -->
  37. <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
  38. <tr>
  39. <td style="padding:20px;">
  40. <!-- Panneau infos -->
  41. <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
  42. <tr>
  43. <td style="background:#e6f2ff; padding:15px; border-radius:6px;">
  44. <h2 style="margin:0; font-size:18px; font-family:Arial, Helvetica, sans-serif; color:#004080;">
  45. {{ event.name }}
  46. </h2>
  47. <p style="margin:8px 0 4px 0; font-size:14px; color:#004080; font-family:Arial, Helvetica, sans-serif;">
  48. <strong>Lieu :</strong> A COMPLETER
  49. </p>
  50. <p style="margin:4px 0; font-size:14px; color:#004080; font-family:Arial, Helvetica, sans-serif;">
  51. <strong>Date :</strong> du {{ event.startOn|date('d/m/Y \\à H:i') }} au {{ event.endOn|date('d/m/Y \\à H:i') }}
  52. </p>
  53. </td>
  54. </tr>
  55. </table>
  56. <!-- Texte -->
  57. <p style="margin:12px 0 16px 0; font-size:14px; color:#555555; line-height:1.5; font-family:Arial, Helvetica, sans-serif;">
  58. {{ event.description }}
  59. </p>
  60. {% set authors = [] %}
  61. {% for party in event.parties %}
  62. {% if party.gamemasterIsAuthor and party.gamemaster not in authors %}
  63. {% set authors = authors|merge([party.gamemaster]) %}
  64. {% endif %}
  65. {% endfor %}
  66. {% if authors|length > 0 %}
  67. <p style="margin:12px 0 16px 0; font-size:16px; color:#333333; line-height:1.5; font-family:Arial, Helvetica, sans-serif;"><strong>Les auteur(rice)s présent(e)s</strong></p>
  68. {% for gamemaster in authors %}
  69. <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
  70. style="background:#f5f5f5; border-radius:6px; margin-bottom:16px;">
  71. <tr>
  72. <td valign="top" style="padding:12px;vertical-align: top;" width="128">
  73. <img src="{{ ('/gamemasters/' ~ (gamemaster.picture ?: 'placeholder.webp'))|base64img }}" alt="{{ gamemaster.preferedName }}" width="128" style="display:block; border-radius:6px;">
  74. </td>
  75. <td style="padding:12px; vertical-align:top;">
  76. <p style="margin:0; font-size:16px; color:#004080; font-family:Arial, Helvetica, sans-serif;">
  77. <strong>{{ gamemaster.preferedName }}</strong>
  78. </p>
  79. <p style="margin:6px 0 0 0; font-size:13px; color:#555555; line-height:1.4; font-family:Arial, Helvetica, sans-serif;">
  80. {{ gamemaster.description }}
  81. </p>
  82. <p style="margin:6px 0 0 0; font-size:13px; color:#555555; line-height:1.4; font-family:Arial, Helvetica, sans-serif;">
  83. Auteur(rice) de : {{ gamemaster.authorOfGames|map(game => game.name)|join(', ') }}
  84. </p>
  85. </td>
  86. </tr>
  87. </table>
  88. {% endfor %}
  89. {% endif %}
  90. <p style="margin:12px 0 16px 0; font-size:14px; color:#555555; line-height:1.5; font-family:Arial, Helvetica, sans-serif;">
  91. Vous pouvez vous inscrire dès à présent à nos animations !
  92. </p>
  93. <!-- Boutons -->
  94. <table role="presentation" cellpadding="0" cellspacing="0" border="0" align="center">
  95. <tr>
  96. <td align="center" style="border-radius:4px; background:#0066cc; padding:10px 18px;">
  97. <a href="{{ app_url ~ path('app_main_booking', {'id': event.id, 'view': 'pictures'})}}" style="font-size:14px; color:#ffffff; text-decoration:none; display:inline-block; font-family:Arial, Helvetica, sans-serif;">
  98. Voir le détail et m'inscrire
  99. </a>
  100. </td>
  101. <td style="width:10px;"></td>
  102. <td align="center" style="border-radius:4px; background:#0099cc; padding:10px 18px;">
  103. <a href="{{ app_url|replace({'https://' : 'webcal://'}) ~ path('app_main_ics', {'id': event.id}) }}" style="font-size:14px; color:#ffffff; text-decoration:none; display:inline-block; font-family:Arial, Helvetica, sans-serif;">Ajouter à mon agenda</a>
  104. </td>
  105. </tr>
  106. </table>
  107. {% endfor %}
  108. </td>
  109. </tr>
  110. </table>
  111. </td>
  112. </tr>
  113. <!-- FOOTER -->
  114. <tr>
  115. <td style="padding:20px; text-align:center; font-size:12px; font-family:Arial, Helvetica, sans-serif; color:#888888;">
  116. Réalisé à partir de ORGASSO : une application pour tous vos événements rôlistiques !
  117. </td>
  118. </tr>
  119. </table>
  120. </td>
  121. </tr>
  122. </table>
  123. </center>
  124. </body>
  125. </html>