1 {% if forms.session.modify is defined or forms.session.move is defined or forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
3 <h2>{% trans %}Modify{% endtrans %}</h2>
4 {{ form_start(forms.session) }}
5 {% if forms.session.modify is defined %}
7 {% if forms.session.date is defined %}
8 {{ form_row(forms.session.date) }}
11 {{ form_row(forms.session.begin) }}
13 {{ form_row(forms.session.length) }}
15 {{ form_row(forms.session.modify) }}
18 {% if forms.session.move is defined %}
19 <div class="dangerous">
20 {{ form_row(forms.session.location) }}
22 {{ form_row(forms.session.move) }}
25 {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
27 {% if is_granted('ROLE_ADMIN') %}
28 {{ form_row(forms.session.user) }}
31 {% if forms.session.cancel is defined %}
32 {{ form_row(forms.session.cancel) }}
35 {% if forms.session.raincancel is defined %}
36 {{ form_row(forms.session.raincancel) }}
39 {% if forms.session.forcecancel is defined %}
40 {{ form_row(forms.session.forcecancel) }}
43 {% if is_granted('ROLE_ADMIN') %}
44 {% if forms.session.attribute is defined %}
45 {{ form_row(forms.session.attribute) }}
47 {{ form_row(forms.session.autoattribute) }}
50 {{ form_row(forms.session.lock) }}
54 {# render csrf token etc .#}
55 <footer style="display:none">{{ form_rest(forms.session) }}</footer>
56 {{ form_end(forms.session) }}