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.dance is defined %}
10 {{ form_row(forms.session.dance) }}
13 {% if forms.session.slot is defined %}
14 {{ form_row(forms.session.slot) }}
17 {% if forms.session.date is defined %}
18 {{ form_row(forms.session.date) }}
21 {{ form_row(forms.session.begin) }}
23 {{ form_row(forms.session.length) }}
25 {{ form_row(forms.session.modify) }}
28 {% if forms.session.move is defined %}
29 <div class="dangerous">
30 {{ form_row(forms.session.location) }}
32 {{ form_row(forms.session.move) }}
35 {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
37 {% if is_granted('ROLE_ADMIN') %}
38 {{ form_row(forms.session.user) }}
41 {% if forms.session.cancel is defined %}
42 {{ form_row(forms.session.cancel) }}
45 {% if forms.session.raincancel is defined %}
46 {{ form_row(forms.session.raincancel) }}
49 {% if forms.session.forcecancel is defined %}
50 {{ form_row(forms.session.forcecancel) }}
53 {% if is_granted('ROLE_ADMIN') %}
54 {% if forms.session.attribute is defined %}
55 {{ form_row(forms.session.attribute) }}
57 {{ form_row(forms.session.autoattribute) }}
60 {{ form_row(forms.session.lock) }}
64 {# render csrf token etc .#}
65 <footer style="display:none">{{ form_rest(forms.session) }}</footer>
66 {{ form_end(forms.session) }}