participations.html.twig 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 class="is-active"><a>En tant que joueur(euse)</a></li>
  13. {% if app.user.linkToGamemaster %}
  14. <li><a href="{{ path('app_profile_participations_gming') }}">En tant que meneur(euse) de jeu</a></li>
  15. {% endif %}
  16. <li><a href="{{ path('app_prodile_participations_requests') }}">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>Participant</th>
  25. <th>Partie</th>
  26. <th>Meneur(euse)</th>
  27. <th>Date et heure</th>
  28. <th>Action</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {% for participation in participations %}
  33. <tr>
  34. <th>{{ participation.party.event.name }}</th>
  35. <td>{{ participation.participantName }}</td>
  36. <td>{{ participation.party.game.name }}</td>
  37. <td>{{ participation.party.gamemaster.preferedName }}</td>
  38. <td>{{ participation.party.startOn|date('d/m/y \\à H:i', app_timezone) }}</td>
  39. <td>
  40. {% if participation.checkin %}
  41. <button class="button-danger" disabled>Annuler</button>
  42. {% else %}
  43. <a href="#" data-id="{{ path('app_participation_cancel', {id: participation.id}) }}" class="button is-danger" {{ stimulus_controller('admin_confirm') }}>Annuler</a>
  44. {% endif %}
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. </div>
  51. {% endblock %}