]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/_session.html.twig
Cleanup todo
[airbundle] / Resources / views / form / _session.html.twig
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') %}
2 <section>
3 <h2>{% trans %}Modify{% endtrans %}</h2>
4 {{ form_start(forms.session) }}
5 {% if forms.session.modify is defined %}
6 <div>
7 {{ form_row(forms.session.begin) }}
8
9 {{ form_row(forms.session.length) }}
10
11 {{ form_row(forms.session.modify) }}
12 </div>
13 {% endif %}
14 {% if forms.session.move is defined %}
15 <div class="dangerous">
16 {{ form_row(forms.session.location) }}
17
18 {{ form_row(forms.session.move) }}
19 </div>
20 {% endif %}
21 {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
22 <div class="mortal">
23 {% if is_granted('ROLE_ADMIN') %}
24 {{ form_row(forms.session.user) }}
25 {% endif %}
26
27 {% if forms.session.cancel is defined %}
28 {{ form_row(forms.session.cancel) }}
29 {% endif %}
30
31 {% if forms.session.raincancel is defined %}
32 {{ form_row(forms.session.raincancel) }}
33 {% endif %}
34
35 {% if forms.session.forcecancel is defined %}
36 {{ form_row(forms.session.forcecancel) }}
37 {% endif %}
38
39 {% if is_granted('ROLE_ADMIN') %}
40 {% if forms.session.attribute is defined %}
41 {{ form_row(forms.session.attribute) }}
42
43 {{ form_row(forms.session.autoattribute) }}
44 {% endif %}
45
46 {{ form_row(forms.session.lock) }}
47 {% endif %}
48 </div>
49 {% endif %}
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(forms.session) }}</footer>
52 {{ form_end(forms.session) }}
53 </section>
54 {% endif %}