]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/view.html.twig
Update css
[airbundle] / Resources / views / location / view.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="location">
4 <h2><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ 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 {# dump(calendar) #}
35 </section>
36 {% endblock %}