]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/organizer/view.html.twig
Change box model
[airbundle] / Resources / views / organizer / view.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="dashboard">
4 <h2><a href="{{ path('rapsys_air_organizer_view', {'id': id}) }}">{{ section }}</a></h2>
5 <div class="panel calendar">
6 {% if calendar is defined and calendar %}
7 <div class="grid">
8 {% for date, day in calendar %}
9 <section class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
10 <h3>{{ day.title }}</h3>
11 {% if day.sessions is not empty %}
12 <ul>
13 {% for session in day.sessions %}
14 <li class="{{ ['session']|merge(session.class)|join(' ') }}">
15 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
16 <span>
17 {% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
18 <span title="{{ session.slottitle }}">{{ session.slot }}</span>
19 </span>
20 </li>
21 {% endfor %}
22 </ul>
23 {% else %}
24 &nbsp;
25 {% endif %}
26 </section>
27 {% endfor %}
28 </div>
29 {% endif %}
30 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
31 </div>
32 </section>
33 {% if locations is defined and locations %}
34 <section id="location">
35 <h2>{% trans %}Locations{% endtrans %}</h2>
36 <div class="panel grid">
37 {% for id, title in locations %}
38 <section class="cell">
39 <h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
40 {% if snippets is defined and snippets[id] is defined and snippets[id] %}
41 {{ form_start(snippets[id]) }}
42 <div>
43 {{ form_row(snippets[id].description) }}
44
45 {{ form_row(snippets[id].submit) }}
46
47 {% if snippets[id].delete is defined %}
48 {{ form_row(snippets[id].delete) }}
49 {% endif %}
50 </div>
51
52 {# render csrf token etc .#}
53 <footer style="display:none">{{ form_rest(snippets[id]) }}</footer>
54 {{ form_end(snippets[id]) }}
55 {% endif %}
56 </section>
57 {% endfor %}
58 </div>
59 </section>
60 {% endif %}
61 {% endblock %}