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