瀏覽代碼

ajout des num de tél/sms/mail des participants pour les managers

garthh 3 周之前
父節點
當前提交
4cc6ee0dce
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      templates/manage/booking.html.twig

+ 9 - 0
templates/manage/booking.html.twig

@@ -83,6 +83,9 @@
                 <th>Espace</th>
                 <th>Jeu</th>
                 <th>Meneur(euse)</th>
+                {% if is_granted('ROLE_MANAGER') %}
+                <th>Contact</th>
+                {% endif %}
                 <th>Action</th>
             </tr>
             </thead>
@@ -95,11 +98,17 @@
                     <td>{{ participation.party.slots.first.space.name }}</td>
                     <td>{{ participation.party.game.name }}</td>
                     <td>{{ participation.party.gamemaster.preferedName }}</td>
+                    {% if is_granted('ROLE_MANAGER') %}
+                    <td>{% if participation.participantPhone %}<a href="tel:{{ participation.participantPhone }}" class="button is-primary"><span class="icon-text"><span class="icon mr-3"><twig:ux:icon name="bi:telephone-fill"/></span></a>&nbsp;<a href="sms:{{ participation.participantPhone }}" class="button is-primary"><span class="icon-text"><span class="icon mr-3"><twig:ux:icon name="bi:envelope"/></span></a>&nbsp;{% endif %}
+                    <a href="mailto:{{ participation.participantEmail }}" class="button is-primary"><span class="icon-text"><span class="icon mr-3"><twig:ux:icon name="bi:envelope-fill"/></span></a>
+                    </td>
+                    {% endif %}
 
                     
                     
 
                     <td>
+                    
                       {% if participation.checkin %}
                       <button class="button is-danger" disabled>Annuler</button>
                       {% else %}