partyrequests.html.twig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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><a href="{{ path('app_profile_participations_gming') }}">En tant que meneur(euse) de jeu</a></li>
  15. {% endif %}
  16. <li class="is-active"><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>Meneur</th>
  26. <th>État</th>
  27. <th>Action</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {% for partyRq in partyRequests %}
  32. <tr>
  33. <th>{{ partyRq.event.name }}</th>
  34. <td>{{ partyRq.gameChoosen.name }}</td>
  35. <td>{{ partyRq.gamemasterChoosen.preferedName }}</td>
  36. <td>{{ partyRq.state['name'] }}</td>
  37. <td>
  38. {% if partyRq.state['code'] == 'WAIT' %}
  39. <a href="#" data-id="{{ path('app_party_request_delete', {id: partyRq.id}) }}" class="button is-danger" {{ stimulus_controller('admin_confirm') }}>Supprimer</a>
  40. {% endif %}
  41. </td>
  42. </tr>
  43. {% endfor %}
  44. </tbody>
  45. </table>
  46. </div>
  47. {% endblock %}