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