| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 | {% extends 'bulma.html.twig' %}{% block title %}Gestion pour {{ event.name }}{% endblock %}{% block content %}{{ component('Modal')}}<div class="card" {{ stimulus_controller('dropdown')}} >  <div class="card-footer">    <div class="dropdown card-footer-item is-flex is-justify-content-space-between is-align-items-center" data-action="click->dropdown#toggle">      <button>        <span><strong>{{ event.name }} - du {{ event.startOn|date('d/m/y à H:i', app_timezone) }} au {{ event.endOn|date('d/m/y à H:i', app_timezone)}}</strong></span>              </button>      {% if events|length > 1 %}      <span class="icon is-small">        <twig:ux:icon name="bi:chevron-down" />       </span>      <div data-dropdown-target="menu" class="dropdown-menu">        <div class="dropdown-content">          {% for evt in events %}          {% if event.id != evt.id %}          <a href="{{ path('app_manage_planning', {id: evt.id})}}" class="dropdown-item"><strong>{{ evt.name }}</strong><small> du {{ evt.startOn|date('d/m/y H:i', app_timezone) }} au {{ evt.endOn|date('d/m/y H:i', app_timezone)}}</small></a>          {% endif %}          {% endfor %}        </div>      </div>      {% endif %}    </div>  </div></div><div class="box is-clearfix">  <div class="columns">    {% if not event.isHiddenPlanning %}    <div class="column">      <p>{{ event.getParties()|length }} parties proposées</p>    </div>    {% endif %}    <div class="column">      <p class="is-inline-block icon-text">{{ event.getGamemastersAssigned|length }} meneur(euse)s de jeu        {% for gamemaster in event.getGamemastersAssigned %}          <span class="icon">              <a href="{{ path('app_gamemaster_public_profile', {id: gamemaster.id}) }}" class="open-modal" title="{{ gamemaster.preferedName }}"><figure class="image is-24x24 is-inline-block">              {% if gamemaster.picture %}              <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}" alt="{{ gamemaster.preferedName }}"/>              {% else %}              <twig:ux:icon name="bi:person-fill"/>              {% endif %}              </figure></a>          </span>           {% endfor %}      </p>    </div>  </div></div>    <div class="tabs is-boxed">        <ul>            <li><a href="{{ path('app_manage_planning', {id: event.id}) }}">Planning</a></li>            <li><a href="{{ path('app_manage_party_list', {id: event.id})}}">Liste des parties</a></li>            <li class="is-active"><a>Liste des participant(e)s</a></li>            {% if event.isEveryoneCanAskForGame %}<li><a  href="{{ path('app_manage_request', {id: event.id}) }}">Liste des demandes</a></li>{% endif %}        </ul>    </div><section>        <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">            <thead>            <tr>                <th>Participant(e)</th>                <th>Horaire</th>                <th>Espace</th>                <th>Jeu</th>                <th>Meneur(euse)</th>                {% if is_granted('ROLE_MANAGER') %}                <th>Contact</th>                {% endif %}                <th>Action</th>            </tr>            </thead>            <tbody>            {% for partie in event.getParties %}            {% for participation in partie.getParticipations %}                <tr>                    <td>{{ participation.participantName }}</td>                    <th>{{ participation.party.startOn|date('d/m/y \\à H:i', app_timezone) }}</th>                    <td>{{ participation.party.slots.first.space.name }}</td>                    <td>{{ participation.party.game.name }}</td>                    <td>{{ participation.party.gamemaster.preferedName }}</td>                    {% if is_granted('ROLE_MANAGER') %}                    <td><div class="buttons has-addons">                    {% if participation.participantPhone %}<a href="tel:{{ participation.participantPhone }}" class="button is-primary" title="Téléphoner"><span class="icon-text"><span class="icon"><twig:ux:icon name="bi:telephone-fill"/></span></a><a href="sms:{{ participation.participantPhone }}" class="button is-primary" title="Envoyer un SMS"><span class="icon-text"><span class="icon"><twig:ux:icon name="bi:envelope"/></span></a>{% else %}                    <a class="button is-primary is-disabled" title="Téléphoner"><span class="icon-text"><span class="icon"><twig:ux:icon name="bi:telephone-fill"/></span></a><a class="button is-primary is-disabled" title="Envoyer un SMS"><span class="icon-text"><span class="icon"><twig:ux:icon name="bi:envelope"/></span></a>{% endif %}                    <a href="mailto:{{ participation.participantEmail }}" class="button is-primary" title="Envoyer un email"><span class="icon-text"><span class="icon"><twig:ux:icon name="bi:envelope-fill"/></span></a>                    </div></td>                    {% endif %}                                                            <td>                                          {% if participation.checkin %}                      <button class="button is-danger" disabled>Annuler</button>                      {% else %}                      <a href="#" data-id="{{ path('app_participation_cancel_direct', {id: participation.id}) }}" class="button is-danger" {{ stimulus_controller('admin_confirm') }}>Annuler</a>                      {% endif %}                    </td>                </tr>            {% endfor %}            {% endfor %}            </tbody>        </table></section>{% endblock %}
 |