gamemastering.html.twig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends 'bulma.html.twig' %}
  2. {% block title %}Mes parties{% endblock %}
  3. {% block content %}
  4. <nav class="breadcrumb has-arrow-separator" aria-label="breadcrumbs">
  5. <ul>
  6. <li><a href="{{ path('app_main') }}">Accueil</a></li>
  7. <li class="is-active"><a href="{{ path('app_profile_participations') }}">Mes parties</a></li>
  8. </ul>
  9. </nav>
  10. <div class="tabs is-boxed">
  11. <ul>
  12. <li><a href="{{ path('app_profile_participations') }}">En tant que joueur(euse)</a></li>
  13. {% if app.user.linkToGamemaster %}
  14. <li class="is-active"><a>En tant que meneur(euse) de jeu</a></li>
  15. {% endif %}
  16. <li><a>Mes demandes</a></li>
  17. </ul>
  18. </div>
  19. <div class="block">
  20. <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
  21. <thead>
  22. <tr>
  23. <th>Événement</th>
  24. <th>Jeu</th>
  25. <th>Date et heure</th>
  26. <th>Participants</th>
  27. <th>Action</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {% for participation in participations %}
  32. <tr>
  33. <th>{{ participation.event.name }}</th>
  34. <td>{{ participation.game.name }}</td>
  35. <td>{{ participation.startOn|date('d/m/y H:i', app_timezone) }}</td>
  36. <td>{{ participation.getSeatsOccuped }} / {{ participation.getMaxParticipants }}</td>
  37. <td>
  38. </td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. </div>
  44. {% endblock %}