]> Raphaël G. Git Repositories - airbundle/blob - Resources/views/user/view.html.twig
New location view layout
[airbundle] / Resources / views / user / view.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article id="dashboard">
4 <header>
5 <h2><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ section }}</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="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">
19 <span>{{ session.start|localizeddate('none', 'short') }}</span>
20 <span class="reducible">{{ session.location }}</span>
21 <span class="info">
22 {% if session.weather is defined and session.weather %}
23 <span title="{{ session.weathertitle }}">{{ session.weather }}</span>
24 {% endif %}
25 <span title="{{ session.slottitle }}">{{ session.slot }}</span>
26 </span>
27 <span>{{ session.stop|localizeddate('none', 'short') }}</span>
28 {% if session.pseudonym is defined and session.pseudonym %}
29 <span class="reducible{% if session.rate is not defined and session.hat is not defined %} pseudonym{% endif %}">{{ session.pseudonym }}</span>
30 {% endif %}
31 {% if session.rate is defined %}<span class="info">{% if session.hat is defined and session.hat %}🎩{% else %}{{ session.rate }} €{% endif %}</span>{% endif %}
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 %}