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