1 {% extends '@RapsysAir/body.html.twig' %}
6 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
7 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
9 <p>{{ description }}</p>
11 {% 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') %}
12 {{ form_start(form) }}
13 {% if form.modify is defined %}
15 {{ form_row(form.begin) }}
17 {{ form_row(form.length) }}
19 {{ form_row(form.modify) }}
22 {% if form.move is defined %}
23 <div class="dangerous">
24 {{ form_row(form.location) }}
26 {{ form_row(form.move) }}
29 {% if form.cancel is defined or form.raincancel is defined or form.forcecancel is defined or is_granted('ROLE_ADMIN') %}
31 {% if is_granted('ROLE_ADMIN') %}
32 {{ form_row(form.user) }}
35 {% if form.cancel is defined %}
36 {{ form_row(form.cancel) }}
39 {% if form.raincancel is defined %}
40 {{ form_row(form.raincancel) }}
43 {% if form.forcecancel is defined %}
44 {{ form_row(form.forcecancel) }}
47 {% if is_granted('ROLE_ADMIN') %}
48 {% if form.attribute is defined %}
49 {{ form_row(form.attribute) }}
51 {{ form_row(form.autoattribute) }}
54 {{ form_row(form.lock) }}
58 {# render csrf token etc .#}
59 <footer style="display:none">{{ form_rest(form) }}</footer>