]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/index.html.twig
9317b4cf8ee1ea006dba7eaa28d8db651acf4569
[airbundle] / Resources / views / session / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article id="dashboard">
4 <header>
5 <h2><a href="{{ path('rapsys_air_session') }}">{{ title }}</a></h2>
6 <p>{{ description }}</p>
7 </header>
8 <div class="panel">
9 {% if calendar is defined and calendar %}
10 <div class="grid calendar seven">
11 {% for date, day in calendar %}
12 <section class="{{ day.class|join(' ') }}">
13 <h3>{{ day.title }}</h3>
14 {% if day.sessions is not empty %}
15 <ul>
16 {% for session in day.sessions %}
17 <li class="{{ session.class|join(' ') }}">
18 <a href="{{ session.link }}" title="{{ session.title }}">
19 <span>{{ session.start|intldate('none', 'short') }}</span>
20 <span class="reducible">{{ session.location.title }}</span>
21 <span class="temperature"{% if session.temperature.title is defined and session.temperature.title %} title="{{ session.temperature.title }}"{% endif %}><span class="glyph">{{ session.temperature.glyph }}</span></span>
22 <span>{{ session.stop|intldate('none', 'short') }}</span>
23 <span class="reducible">{% if session.application.user.title is defined and session.application.user.title %}{{ session.application.user.title }}{% endif %}</span>
24 <span class="rain"{% if session.rain.title is defined and session.rain.title %} title="{{ session.rain.title }}"{% endif %}><span class="glyph">{{ session.rain.glyph }}</span></span>
25 {% if session.rate is defined and session.rate %}
26 <span class="rate" title="{{ session.rate.title }}">{% if session.rate.rate is defined and session.rate.rate %}{{ session.rate.rate }} {% endif %}<span class="glyph">{{ session.rate.glyph }}</span></span>
27 {% else %}
28 <span></span>
29 {% endif %}
30 <span class="reducible">{{ session.location.zipcode }} {{ session.location.city }}</span>
31 <span></span>
32 </a>
33 </li>
34 {% endfor %}
35 </ul>
36 {% endif %}
37 </section>
38 {% endfor %}
39 </div>
40 {% endif %}
41 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
42 </div>
43 </article>
44 {{ include('@RapsysAir/default/_location.html.twig') }}
45 {% endblock %}