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') %}
4 <h3>{% trans %}Modify{% endtrans %}</h3>
6 {{ form_start(forms.session) }}
7 {% if forms.session.modify is defined %}
9 {% if forms.session.date is defined %}
10 {{ form_row(forms.session.date) }}
13 {{ form_row(forms.session.begin) }}
15 {{ form_row(forms.session.length) }}
17 {{ form_row(forms.session.modify) }}
20 {% if forms.session.move is defined %}
21 <div class="dangerous">
22 {{ form_row(forms.session.location) }}
24 {{ form_row(forms.session.move) }}
27 {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
29 {% if is_granted('ROLE_ADMIN') %}
30 {{ form_row(forms.session.user) }}
33 {% if forms.session.cancel is defined %}
34 {{ form_row(forms.session.cancel) }}
37 {% if forms.session.raincancel is defined %}
38 {{ form_row(forms.session.raincancel) }}
41 {% if forms.session.forcecancel is defined %}
42 {{ form_row(forms.session.forcecancel) }}
45 {% if is_granted('ROLE_ADMIN') %}
46 {% if forms.session.attribute is defined %}
47 {{ form_row(forms.session.attribute) }}
49 {{ form_row(forms.session.autoattribute) }}
52 {{ form_row(forms.session.lock) }}
56 {# render csrf token etc .#}
57 <footer style="display:none">{{ form_rest(forms.session) }}</footer>
58 {{ form_end(forms.session) }}