1 {% extends '@RapsysAir/body.html.twig' %}
5 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
6 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
8 {% if form.modify is defined or form.move is defined or form.cancel is defined or form.raincancel is defined or form.forcecancel is defined or is_granted('ROLE_ADMIN') %}
10 {% if form.modify is defined %}
12 {{ form_row(form.begin) }}
14 {{ form_row(form.length) }}
16 {{ form_row(form.modify) }}
19 {% if form.move is defined %}
20 <div class="dangerous">
21 {{ form_row(form.location) }}
23 {{ form_row(form.move) }}
26 {% if form.cancel is defined or form.raincancel is defined or form.forcecancel is defined or is_granted('ROLE_ADMIN') %}
28 {% if is_granted('ROLE_ADMIN') %}
29 {{ form_row(form.user) }}
32 {% if form.cancel is defined %}
33 {{ form_row(form.cancel) }}
36 {% if form.raincancel is defined %}
37 {{ form_row(form.raincancel) }}
40 {% if form.forcecancel is defined %}
41 {{ form_row(form.forcecancel) }}
44 {% if is_granted('ROLE_ADMIN') %}
45 {% if form.attribute is defined %}
46 {{ form_row(form.attribute) }}
48 {{ form_row(form.autoattribute) }}
51 {{ form_row(form.lock) }}
55 {# render csrf token etc .#}
56 <footer style="display:none">{{ form_rest(form) }}</footer>