ソースを参照

correctif template email

garthh 1 週間 前
コミット
535b2e5b3e
1 ファイル変更43 行追加11 行削除
  1. 43 11
      templates/main/mailing/detail.template.html.twig

+ 43 - 11
templates/main/mailing/detail.template.html.twig

@@ -18,14 +18,7 @@
               </td>
             </tr>
 
-            <!-- INTRO -->
-            <tr>
-              <td style="padding:20px; font-family:Arial, Helvetica, sans-serif; font-size:15px; color:#333333; line-height:1.6;">
-                <p>
-                  {{ event.description }}
-                </p>
-              </td>
-            </tr>
+
 
             <!-- ÉVÉNEMENT -->
             <tr>
@@ -42,9 +35,6 @@
                       <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
                         <tr>
                           <td style="background:#e6f2ff; padding:15px; border-radius:6px;">
-                            <h2 style="margin:0; font-size:18px; font-family:Arial, Helvetica, sans-serif; color:#004080;">
-                              {{ event.name }}
-                            </h2>
                             <p style="margin:8px 0 4px 0; font-size:14px; color:#004080; font-family:Arial, Helvetica, sans-serif;">
                               <strong>Lieu :</strong> A COMPLETER
                             </p>
@@ -91,6 +81,48 @@
                       </table>
 											{% endfor %}
                       {% endif %}
+                      
+                      <!-- GAMES LOOP -->
+                      {% for party in event.parties %}
+                      <tr>
+              					<td style="border-bottom:1px solid #e0e0e0;">
+                				<!-- Image -->
+                				<img src="{{ ('/games/' ~ (party.game.picture ?: 'placeholder.webp'))|base64img }}" alt="{{ party.game.name }}" width="600" height="200"
+                     style="display:block; border:0; margin:0; padding:0;">
+                			<!-- Contenu -->
+                			<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
+                  <tr>
+                    <td style="padding:20px;">
+
+                      <!-- Texte -->
+                    <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
+                        <tr>
+                          <td style="background:#e6f2ff; padding:15px; border-radius:6px;">
+                            <h2 style="margin:0; font-size:18px; font-family:Arial, Helvetica, sans-serif; color:#004080;">
+                              {{ party.game.name }}
+                            </h2>
+                            <p style="margin:4px 0; font-size:14px; color:#004080; font-family:Arial, Helvetica, sans-serif;">
+                              <strong>Date :</strong> du {{ party.startOn|date('d/m/Y \\à H:i') }} au {{ party.endOn|date('d/m/Y \\à H:i') }}
+                            </p>
+                          </td>
+                        </tr>
+                      </table>
+                      <h3>Le jeu</h3>
+                      <p style="margin:12px 0 16px 0; font-size:14px; color:#555555; line-height:1.5; font-family:Arial, Helvetica, sans-serif;">
+                        {{ party.game.description }}
+                      </p>
+                      <h3>La partie proposée</h3>
+                    <p style="margin:12px 0 16px 0; font-size:14px; color:#555555; line-height:1.5; font-family:Arial, Helvetica, sans-serif;">
+                        {{ party.description }}
+                      </p>
+                      </td>
+                      </tr>
+                      </table>
+                      
+                      
+                      
+                      
+                      <!-- END GAMES LOOP -->
 
                       <p style="margin:12px 0 16px 0; font-size:14px; color:#555555; line-height:1.5; font-family:Arial, Helvetica, sans-serif;">
                         Vous pouvez vous inscrire dès à présent à nos animations !