]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/index.html.twig
Rename flash class in message
[airbundle] / Resources / views / session / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="session">
4 <h2><a href="{{ path('rapsys_air_session') }}">{{ section }}</a></h2>
5 <section class="panel">
6 {% if calendar is defined and calendar %}
7 <table class="grid">
8 <tbody>
9 <tr>
10 {% for date, day in calendar %}
11 <td class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
12 <h3>{{ day.title }}</h3>
13 {% if day.sessions is not empty %}
14 <ul>
15 {% for session in day.sessions %}
16 <li class="{{ ['session']|merge(session.class)|join(' ') }}">
17 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
18 </li>
19 {% endfor %}
20 </ul>
21 {% endif %}
22 </td>
23 {% if loop.index % 7 == 0 and not loop.last %}
24 </tr>
25 <tr>
26 {% endif %}
27 {% endfor %}
28 </tr>
29 </tbody>
30 </table>
31 {% endif %}
32 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
33 </section>
34 <section class="panel">
35 {% if locations is defined and locations %}
36 <table class="grid">
37 <tbody>
38 <tr>
39 {% for id, title in locations %}
40 <td class="cell third"><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></td>
41 {% if loop.index % 7 == 0 and not loop.last %}
42 </tr>
43 <tr>
44 {% endif %}
45 {% endfor %}
46 </tr>
47 </tbody>
48 </table>
49 {% endif %}
50 </section>
51 </section>
52 {% endblock %}