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