+ {% if session.locked is defined and session.locked %}
+ <dl>
+ <dt>{% trans %}Locked{% endtrans %}</dt>
+ <dd>{{ session.locked|intldate('long', 'medium') }}</dd>
+ </dl>
+ {% endif %}
+ <dl>
+ <dt>{% trans %}Created{% endtrans %}</dt>
+ <dd>{{ session.created|intldate('long', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Updated{% endtrans %}</dt>
+ <dd>{{ session.updated|intldate('long', 'medium') }}</dd>
+ </dl>
+ </section>
+ <section class="cell">
+ <header>
+ <h3>{% trans %}Location{% endtrans %}</h3>
+ </header>
+ <dl>
+ <dt>{% trans %}Place{% endtrans %}</dt>
+ <dd><a href="{{ session.location.link }}">{{ session.location.title }}</a></dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Description{% endtrans %}</dt>
+ <dd>{{ session.location.description }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Interiority{% endtrans %}</dt>
+ <dd>{% if session.location.indoor is defined and session.location.indoor%}{% trans %}Indoor{% endtrans %}{% else %}{% trans %}Outdoor{% endtrans %}{% endif %}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Address{% endtrans %}</dt>
+ <dd>
+ {{ session.location.address }}
+ {{ session.location.zipcode }} {{ session.location.city }}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}GPS coordinates{% endtrans %}</dt>
+ <dd>
+ {{ session.location.latitude }},{{ session.location.longitude }}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Maps{% endtrans %}</dt>
+ <dd>
+ <a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a>
+ </dd>
+ <dd>
+ <a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a>
+ </dd>
+ </dl>
+ {% if map is defined and map %}
+ <dl class="map">
+ <dt>{% trans %}Access map{% endtrans %}</dt>
+ <dd>
+ <a href="{{ map.link }}" title="{{ map.caption }}">
+ <figure>
+ <img src="{{ map.src }}" alt="{{ map.caption }}" width="{{ map.width }}" height="{{ map.height }}" />
+ <figcaption>{{ map.caption }}</figcaption>
+ </figure>
+ </a>
+ </dd>
+ </dl>
+ {% endif %}
+ </section>
+ <section class="cell">
+ <header>
+ <h3>{% trans %}Weather{% endtrans %}</h3>
+ </header>
+ {% if session.rainrisk is not null %}
+ <dl>
+ <dt>{% trans %}Rainrisk{% endtrans %}</dt>
+ <dd>{{ session.rainrisk }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.rainfall is not null %}
+ <dl>
+ <dt>{% trans %}Rainfall{% endtrans %}</dt>
+ <dd>{{ session.rainfall }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeel is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel{% endtrans %}</dt>
+ <dd>{{ session.realfeel }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeelmin is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel min{% endtrans %}</dt>
+ <dd>{{ session.realfeelmin }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeelmax is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel max{% endtrans %}</dt>
+ <dd>{{ session.realfeelmax }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperature is not null %}
+ <dl>
+ <dt>{% trans %}Temperature{% endtrans %}</dt>
+ <dd>{{ session.temperature }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperaturemin is not null %}
+ <dl>
+ <dt>{% trans %}Temperature min{% endtrans %}</dt>
+ <dd>{{ session.temperaturemin }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperaturemax is not null %}
+ <dl>
+ <dt>{% trans %}Temperature max{% endtrans %}</dt>
+ <dd>{{ session.temperaturemax }}</dd>
+ </dl>
+ {% endif %}
+ </section>
+ {% if is_granted('ROLE_GUEST') %}
+ <section class="cell">
+ <header>
+ <h3>{% trans %}Candidates{% endtrans %}</h3>
+ </header>
+ <div class="panel">
+ <div class="grid{% if session.applications is defined %}{% if session.applications|length >= 4 %} four{% elseif session.applications|length >= 3 %} three{% elseif session.applications|length >= 2 %} two{% endif %}{% endif %}">
+ {% if session.applications is defined and session.applications %}
+ {% for application in session.applications %}
+ <section class="cell">
+ <header>
+ {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %}
+ <h3><a href="{{ path('rapsys_air_user_milongaraphael') }}">{{ application.user.title }}</a></h3>
+ {% else %}
+ <h3><a href="{{ path('rapsys_air_user_view', {'id': application.user.id, 'user': application.user.title|slug}) }}">{{ application.user.title }}</a></h3>
+ {% endif %}
+ </header>
+ <dl>
+ <dt>{% trans %}Score{% endtrans %}</dt>
+ <dd>
+ {% if application.score is null %}
+ {% trans %}None{% endtrans %}
+ {% else %}
+ {{ application.score }}</dd>
+ {% endif %}
+ </dl>
+ <dl>
+ <dt>{% trans %}Created{% endtrans %}</dt>
+ <dd>{{ application.created|intldate('long', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Updated{% endtrans %}</dt>
+ <dd>{{ application.updated|intldate('long', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Canceled{% endtrans %}</dt>
+ <dd>
+ {% if application.canceled is null %}
+ {% trans %}None{% endtrans %}
+ {% else %}
+ {{ application.canceled|intldate('long', 'medium') }}
+ {% endif %}
+ </dd>
+ </dl>
+ </section>
+ {% endfor %}
+ {% else %}
+ <section class="cell">
+ {% trans %}None{% endtrans %}
+ </section>
+ {% endif %}
+ </div>
+ </div>
+ </section>
+ {% endif %}
+ </div>
+ {{ include('@RapsysAir/form/_toolbox.html.twig') }}