]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/edit.html.twig
New css layout
[airbundle] / Resources / views / session / edit.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="form">
4 <h2>
5 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
6 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
7 </h2>
8 {% if form.modify is defined or form.raincancel is defined %}
9 {{ form_start(form) }}
10 {% if form.modify is defined %}
11 {% if is_granted('ROLE_REGULAR') %}
12 <div>
13 {{ form_row(form.begin) }}
14
15 {{ form_row(form.length) }}
16
17 {{ form_row(form.modify) }}
18 </div>
19 {% endif %}
20 {% if is_granted('ROLE_SENIOR') %}
21 <div class="dangerous">
22 {{ form_row(form.location) }}
23
24 {{ form_row(form.move) }}
25 </div>
26 {% endif %}
27 <div class="mortal">
28 {% if is_granted('ROLE_ADMIN') %}
29 {{ form_row(form.user) }}
30 {% endif %}
31
32 {{ form_row(form.cancel) }}
33
34 {% if is_granted('ROLE_ADMIN') %}
35 {{ form_row(form.attribute) }}
36
37 {{ form_row(form.autoattribute) }}
38
39 {{ form_row(form.lock) }}
40 {% endif %}
41 </div>
42 {% elseif form.raincancel is defined %}
43 <div>
44 {{ form_row(form.raincancel) }}
45 </div>
46 {% endif %}
47
48 {# render csrf token etc .#}
49 <footer style="display:none">{{ form_rest(form) }}</footer>
50 {{ form_end(form) }}
51 {% endif %}
52 </section>
53 {% endblock %}