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 {{ form_row(forms.session.begin) }}
9 {{ form_row(forms.session.length) }}
11 {{ form_row(forms.session.modify) }}
14 {% if forms.session.move is defined %}
15 <div class="dangerous">
16 {{ form_row(forms.session.location) }}
18 {{ form_row(forms.session.move) }}
21 {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
23 {% if is_granted('ROLE_ADMIN') %}
24 {{ form_row(forms.session.user) }}
27 {% if forms.session.cancel is defined %}
28 {{ form_row(forms.session.cancel) }}
31 {% if forms.session.raincancel is defined %}
32 {{ form_row(forms.session.raincancel) }}
35 {% if forms.session.forcecancel is defined %}
36 {{ form_row(forms.session.forcecancel) }}
39 {% if is_granted('ROLE_ADMIN') %}
40 {% if forms.session.attribute is defined %}
41 {{ form_row(forms.session.attribute) }}
43 {{ form_row(forms.session.autoattribute) }}
46 {{ form_row(forms.session.lock) }}
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(forms.session) }}</footer>
52 {{ form_end(forms.session) }}