Browse Source

trunc à 30 caractère sur les noms de participants dans les affichages

garthh 2 weeks ago
parent
commit
f7802263fc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      templates/checkin/_modal.checkin.html.twig
  2. 1 1
      templates/manage/booking.html.twig

+ 1 - 1
templates/checkin/_modal.checkin.html.twig

@@ -9,7 +9,7 @@
   <div data-id="{{participant.id}}" class="participant-box box{% if participant.checkin == null %}{% elseif participant.checkin %} has-background-primary{% else %} has-background-danger{% endif %}">
     <p class="subtitle is-3">
       {% if participant.checkin %}<span class="icon"><twig:ux:icon name="bi:check2-circle"/></span>{% else %}<span class="icon"><twig:ux:icon name="bi:circle"/></span>{% endif %}
-      &nbsp;{{ participant.participantName }}</p>
+      &nbsp;<span title="{{ participation.participantName }}">{{ participation.participantName|length > 30 ? participation.participantName|slice(0, 30) ~ '...' : participation.participantName }}</span></p>
   </div>
 
   {% endfor %}

+ 1 - 1
templates/manage/booking.html.twig

@@ -93,7 +93,7 @@
             {% for partie in event.getParties %}
             {% for participation in partie.getParticipations %}
                 <tr>
-                    <td>{{ participation.participantName }}</td>
+                    <td><span title="{{ participation.participantName }}">{{ participation.participantName|length > 30 ? participation.participantName|slice(0, 30) ~ '...' : participation.participantName }}</span></td>
                     <td>{{ participation.party.startOn|date('d/m/y \\à H:i', app_timezone) }}</th>
                     <td>{{ participation.party.slots.first.space.name }}</td>
                     <td>{{ participation.party.game.name }}</td>