1 {% extends '@RapsysAir/body.html.twig' %}
3 <article id="dashboard"{% if session.application.canceled is defined and session.application.canceled %} class="canceled"{% endif %}>
6 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
7 {% if session.application.id is defined and session.application.id %}
8 <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.by }}</a>
10 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
12 <p>{{ page.description }}</p>
15 <div class="grid four">
16 <section class="cell">
17 <h3>{% trans %}Organizer{% endtrans %}</h3>
19 <dt>{% trans %}Attributed to{% endtrans %}</dt>
21 {% if session.application is null %}
22 {% trans %}None{% endtrans %}
24 <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a>
28 {% if session.snippet.description is defined and session.snippet.description %}
30 <dt>{% trans %}Description{% endtrans %}</dt>
31 <dd>{{ session.snippet.description|striptags|markdown_to_html }}</dd>
34 {% if session.snippet.class is defined and session.snippet.class %}
36 <dt>{% trans %}Class{% endtrans %}</dt>
37 <dd>{{ session.snippet.class|striptags|markdown_to_html }}</dd>
40 {% if session.snippet.contact is defined and session.snippet.contact %}
42 <dt>{% trans %}Contact{% endtrans %}</dt>
43 <dd><a href="{{ session.snippet.contact }}">{{ 'Send a message to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
46 {% if session.snippet.donate is defined and session.snippet.donate %}
48 <dt>{% trans %}Donate{% endtrans %}</dt>
49 <dd><a href="{{ session.snippet.donate }}">{{ 'Donate to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
52 {% if session.snippet.link is defined and session.snippet.link %}
54 <dt>{% trans %}Link{% endtrans %}</dt>
55 <dd><a href="{{ session.snippet.link }}">{{ 'Link to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
58 {% if session.snippet.profile is defined and session.snippet.profile %}
60 <dt>{% trans %}Social network{% endtrans %}</dt>
61 <dd><a href="{{ session.snippet.profile }}">{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
65 <section class="cell">
66 <h3>{% trans %}Schedule{% endtrans %}</h3>
68 <dt>{% trans %}Date{% endtrans %}</dt>
69 <dd>{{ session.start|localizeddate('long', 'none') }}</dd>
72 <dt>{% trans %}Start{% endtrans %}</dt>
73 <dd>{{ session.start|localizeddate('none', 'medium') }}</dd>
76 <dt>{% trans %}Stop{% endtrans %}</dt>
77 <dd>{{ session.stop|localizeddate('none', 'medium') }}</dd>
80 <dt>{% trans %}Length{% endtrans %}</dt>
81 <dd>{{ session.length|localizeddate('none', 'short', null, null, 'HH:mm') }}</dd>
84 <dt>{% trans %}Slot{% endtrans %}</dt>
85 <dd>{{ session.slot.title }}</dd>
88 <dt>{% trans %}Locked{% endtrans %}</dt>
90 {% if session.locked is null %}
91 {% trans %}None{% endtrans %}
93 {{ session.locked|localizeddate('long', 'medium') }}
98 <dt>{% trans %}Created{% endtrans %}</dt>
99 <dd>{{ session.created|localizeddate('long', 'medium') }}</dd>
102 <dt>{% trans %}Updated{% endtrans %}</dt>
103 <dd>{{ session.updated|localizeddate('long', 'medium') }}</dd>
106 <section class="cell">
107 <h3>{% trans %}Weather{% endtrans %}</h3>
108 {% if session.rainrisk is not null %}
110 <dt>{% trans %}Rainrisk{% endtrans %}</dt>
111 <dd>{{ session.rainrisk }}</dd>
114 {% if session.rainfall is not null %}
116 <dt>{% trans %}Rainfall{% endtrans %}</dt>
117 <dd>{{ session.rainfall }}</dd>
120 {% if session.realfeel is not null %}
122 <dt>{% trans %}Realfeel{% endtrans %}</dt>
123 <dd>{{ session.realfeel }}</dd>
126 {% if session.realfeelmin is not null %}
128 <dt>{% trans %}Realfeel min{% endtrans %}</dt>
129 <dd>{{ session.realfeelmin }}</dd>
132 {% if session.realfeelmax is not null %}
134 <dt>{% trans %}Realfeel max{% endtrans %}</dt>
135 <dd>{{ session.realfeelmax }}</dd>
138 {% if session.temperature is not null %}
140 <dt>{% trans %}Temperature{% endtrans %}</dt>
141 <dd>{{ session.temperature }}</dd>
144 {% if session.temperaturemin is not null %}
146 <dt>{% trans %}Temperature min{% endtrans %}</dt>
147 <dd>{{ session.temperaturemin }}</dd>
150 {% if session.temperaturemax is not null %}
152 <dt>{% trans %}Temperature max{% endtrans %}</dt>
153 <dd>{{ session.temperaturemax }}</dd>
157 <section class="cell">
158 <h3>{% trans %}Location{% endtrans %}</h3>
161 <dt>{% trans %}Location{% endtrans %}</dt>
162 <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
166 <dt>{% trans %}Address{% endtrans %}</dt>
168 {{ session.location.address }}
169 {{ session.location.zipcode }} {{ session.location.city }}
173 <dt>{% trans %}Maps{% endtrans %}</dt>
174 <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
175 <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
178 <dt>{% trans %}Minimap{% endtrans %}</dt>
179 <dd>TODO: minimap</dd>
183 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
186 <h3>{% trans %}Candidates{% endtrans %}</h3>
187 <div class="panel grid four">
188 {% if session.applications is null %}
189 <section class="cell">
190 {% trans %}None{% endtrans %}
193 {% for application in session.applications %}
194 <article class="cell">
195 <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
197 <dt>{% trans %}Score{% endtrans %}</dt>
199 {% if application.score is null %}
200 {% trans %}None{% endtrans %}
202 {{ application.score }}</dd>
206 <dt>{% trans %}Created{% endtrans %}</dt>
207 <dd>{{ application.created|localizeddate('long', 'medium') }}</dd>
210 <dt>{% trans %}Updated{% endtrans %}</dt>
211 <dd>{{ application.updated|localizeddate('long', 'medium') }}</dd>
214 <dt>{% trans %}Canceled{% endtrans %}</dt>
216 {% if application.canceled is null %}
217 {% trans %}None{% endtrans %}
219 {{ application.canceled|localizeddate('long', 'medium') }}
229 {{ include('@RapsysAir/default/_location.html.twig') }}