Browse Source

test data-priority pour datatables.js

garthh 2 weeks ago
parent
commit
4105f82d22
1 changed files with 8 additions and 8 deletions
  1. 8 8
      templates/manage/booking.html.twig

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

@@ -78,15 +78,15 @@
         <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
             <thead>
             <tr>
-                <th>Participant(e)</th>
-                <th>Horaire</th>
-                <th>Espace</th>
-                <th>Jeu</th>
-                <th>Meneur(euse)</th>
+                <th data-priority="1">Participant(e)</th>
+                <th data-priority="2">Horaire</th>
+                <th data-priority="3">Espace</th>
+                <th data-priority="2">Jeu</th>
+                <th data-priority="3">Meneur(euse)</th>
                 {% if is_granted('ROLE_MANAGER') %}
-                <th>Contact</th>
+                <th data-priority="1">Contact</th>
                 {% endif %}
-                <th>Action</th>
+                <th data-priority="1">Action</th>
             </tr>
             </thead>
             <tbody>
@@ -94,7 +94,7 @@
             {% for participation in partie.getParticipations %}
                 <tr>
                     <td>{{ participation.participantName }}</td>
-                    <th>{{ participation.party.startOn|date('d/m/y \\à H:i', app_timezone) }}</th>
+                    <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>
                     <td>{{ participation.party.gamemaster.preferedName }}</td>