| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 | {% extends 'modal.html.twig' %}{% block title %}{{ party.game.name }}{% endblock %}{% block header %}{% if party.getGame.getPicture %}  <section class="modal-card-image">    <figure class="image is-3by1">      <img        src="/images/games/{{ party.getGame.getPicture }}"        alt="{{ party.getGame.getName }}"      />    </figure>  </section>{% endif %}{% endblock %}{% block content %}  <div class="content">    <div class="columns">      <div class="column has-text-right is-one-quarter">        <strong>Horaires</strong>      </div>    <div class="column has-text-left">        le {{ party.getStartOn|date('d/m/Y \\d\\e H:i', app_timezone)}} à {{ party.getEndOn|date('H:i', app_timezone)}}      </div>    </div>    <div class="columns">      <div class="column has-text-right is-one-quarter">        <strong>Espace</strong>      </div>      <div class="column has-text-left">        {{ party.getSlots.first.getSpace.getName }}      </div>    </div>    <div class="columns">      <div class="column has-text-right is-one-quarter">        <strong>Meneur(euse)</strong>      </div>      <div class="column has-text-left">        <span class="icon">            <figure class="image is-24x24 is-inline-block">            {% if party.getGamemaster.picture %}            <img class="is-rounded" src="/images/gamemasters/{{ party.getGamemaster.picture }}" />            {% else %}            <twig:ux:icon name="bi:person-fill"/>            {% endif %}            </figure>        </span>         {{ party.getGamemaster.getPreferedName }}{% if party.gamemasterIsAuthor %} / auteur(rice) du jeu{% endif %}      </div>    </div>    <div class="columns">      <div class="column has-text-right is-one-quarter">        <strong>Âge</strong>      </div>      <div class="column has-text-left">        {{ party.getGame.getAgeRecommendationLabel }}      </div>    </div>  </div> <div class="tabs is-boxed" {{ stimulus_controller('bulma_tabs') }}>   <ul>     <li class="is-active" data-id="tab-1"><a>Le jeu</a></li>     {% if party.getDescription %}<li data-id="tab-2"><a>Le scénario</a></li>{% endif %}     {% if party.getSeatsLeft > 0 %}{% if party.getEndOn > date() or is_granted('ROLE_MANAGER') %}<li data-id="tab-3"><a>S'incrire</a></li>{% endif %}{% endif %}   </ul> </div>  <div id="tabs-content">    <div class="container" id="tab-1">      <p>{{ party.getGame.getDescription }}</p>    </div>    {% if party.getDescription %}    <div class="container is-hidden" id="tab-2">      <p>{{ party.getDescription }}</p>          </div>    {% endif %}    {% if party.getSeatsLeft > 0 %}      {% if party.getEndOn > date() or is_granted('ROLE_MANAGER') %}    <div class="container is-hidden" id="tab-3">        {{ form_errors(form) }}    {{ form_start(form, {action: path(pathController, {id: party.slots.first.getId}), attr: {'data-turbo-frame': 'modal-content'}}) }}    {{ form_row(form.participantName) }}    {{ form_row(form.participantEmail) }}    {{ form_row(form.participantPhone) }}    <div class="field">      {{ form_widget(form.consentMail) }}      {{ form_label(form.consentMail) }}    </div>    <div class="field">      {{ form_widget(form.consentImage) }}      {{ form_label(form.consentImage) }}      {{ form_help(form.consentImage) }}    </div>    {% if party.getSeatsLeft > 1 %}    <div class="box">      <div class="block">        <h3 class="title is-6">Participation de groupe</h3>        <p>Si des joueur(euse)s vous accompagnent sur cette partie, inscrivez simplement leurs noms ci-dessous.</p>      </div>      <div class="block">      {% for i in 2..party.getSeatsLeft %}        <div class="field">          <label class="label">Accompagnant(e) {{ i-1 }}</label>          <input id="party_more_{{ i-1 }}" name="party_more[{{ i-1 }}]" class="input" type="text" />        </div>      {% endfor %}      </div>    </div>    {% endif %}    {{ form_widget(form)}}    <div class="control">        <button class="button is-primary" type="submit">Envoyer</button>    </div>        {{ form_end(form) }}    </div>    {% endif %}    {% endif %} </div>{% endblock %}
 |