gamemastering.html.twig 1.9 KB

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