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