participations.html.twig 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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>Date et heure</th>
  27. <th>Action</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {% for participation in participations %}
  32. <tr>
  33. <th>{{ participation.party.event.name }}</th>
  34. <td>{{ participation.participantName }}</td>
  35. <td>{{ participation.party.game.name }}</td>
  36. <td>{{ participation.party.startOn|date('d/m/y H:i', app_timezone) }}</td>
  37. <td>
  38. {% if participation.checkin %}
  39. <button class="button-danger" disabled>Annuler</button>
  40. {% else %}
  41. <a href="#" data-id="{{ path('app_participation_cancel', {id: participation.id}) }}" class="button is-danger" {{ stimulus_controller('admin_confirm') }}>Annuler</a>
  42. {% endif %}
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </tbody>
  47. </table>
  48. </div>
  49. {% endblock %}