123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {% extends 'bulma.html.twig' %}
- {% block title %}Mes parties{% endblock %}
- {% block content %}
- <nav class="breadcrumb has-arrow-separator" aria-label="breadcrumbs">
- <ul>
- <li><a href="{{ path('app_main') }}">Accueil</a></li>
- <li class="is-active"><a href="{{ path('app_profile_participations') }}">Mes parties</a></li>
- </ul>
- </nav>
- <div class="tabs is-boxed">
- <ul>
- <li><a href="{{ path('app_profile_participations') }}">En tant que joueur(euse)</a></li>
- {% if app.user.linkToGamemaster %}
- <li><a href="{{ path('app_profile_participations_gming') }}">En tant que meneur(euse) de jeu</a></li>
- {% endif %}
- <li class="is-active"><a>Mes demandes</a></li>
- </ul>
- </div>
- <div class="block">
- <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
- <thead>
- <tr>
- <th>Événement</th>
- <th>Jeu</th>
- <th>Meneur</th>
- <th>État</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- {% for partyRq in partyRequests %}
- <tr>
- <th>{{ partyRq.event.name }}</th>
- <td>{{ partyRq.gameChoosen.name }}</td>
- <td>{{ partyRq.gamemasterChoosen.preferedName }}</td>
- <td>{{ partyRq.state['name'] }}</td>
- <td>
- {% if partyRq.state['code'] == 'WAIT' %}
- <a href="#" data-id="{{ path('app_party_request_delete', {id: partyRq.id}) }}" class="button is-danger" {{ stimulus_controller('admin_confirm') }}>Supprimer</a>
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- {% endblock %}
|