]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/view.html.twig
c3367b4cae651f2a4facc739d2e55422c6910198
[airbundle] / Resources / views / session / view.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="dashboard">
4 <h2>
5 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
6 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
7 </h2>
8 <div class="panel calendar">
9 <div class="grid">
10 <section class="cell">
11 <h3>{% trans %}Organizer{% endtrans %}</h3>
12 <dl>
13 <dt>{% trans %}Attributed to{% endtrans %}</dt>
14 <dd>
15 {% if session.application is null %}
16 {% trans %}None{% endtrans %}
17 {% else %}
18 <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a>
19 {% endif %}
20 </dd>
21 </dl>
22 </section>
23 <section class="cell">
24 <h3>{% trans %}Schedule{% endtrans %}</h3>
25 <dl>
26 <dt>{% trans %}Slot{% endtrans %}</dt>
27 <dd>{{ session.slot.title }}</dd>
28 </dl>
29 <dl>
30 <dt>{% trans %}Start{% endtrans %}</dt>
31 <dd>{{ session.start.format('Y-m-d H:i:s') }}</dd>
32 </dl>
33 <dl>
34 <dt>{% trans %}Stop{% endtrans %}</dt>
35 <dd>
36 {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %}
37 {{ session.stop.format('Y-m-d H:i:s') }}
38 {% else %}
39 {{ session.stop.format('H:i:s') }}
40 {% endif %}
41 </dd>
42 </dl>
43 <dl>
44 <dt>{% trans %}Length{% endtrans %}</dt>
45 <dd>{{ session.length.format('H:i:s') }}</dd>
46 </dl>
47 <dl>
48 <dt>{% trans %}Created{% endtrans %}</dt>
49 <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
50 </dl>
51 <dl>
52 <dt>{% trans %}Updated{% endtrans %}</dt>
53 <dd>{{ session.updated.format('Y-m-d H:i:s') }}</dd>
54 </dl>
55 </section>
56 <section class="cell">
57 <h3>{% trans %}Weather{% endtrans %}</h3>
58 {% if session.rainrisk is not null %}
59 <dl>
60 <dt>{% trans %}Rainrisk{% endtrans %}</dt>
61 <dd>{{ session.rainrisk }}</dd>
62 </dl>
63 {% endif %}
64 {% if session.rainfall is not null %}
65 <dl>
66 <dt>{% trans %}Rainfall{% endtrans %}</dt>
67 <dd>{{ session.rainfall }}</dd>
68 </dl>
69 {% endif %}
70 {% if session.realfeel is not null %}
71 <dl>
72 <dt>{% trans %}Realfeel{% endtrans %}</dt>
73 <dd>{{ session.realfeel }}</dd>
74 </dl>
75 {% endif %}
76 {% if session.realfeelmin is not null %}
77 <dl>
78 <dt>{% trans %}Realfeel min{% endtrans %}</dt>
79 <dd>{{ session.realfeelmin }}</dd>
80 </dl>
81 {% endif %}
82 {% if session.realfeelmax is not null %}
83 <dl>
84 <dt>{% trans %}Realfeel max{% endtrans %}</dt>
85 <dd>{{ session.realfeelmax }}</dd>
86 </dl>
87 {% endif %}
88 {% if session.temperature is not null %}
89 <dl>
90 <dt>{% trans %}Temperature{% endtrans %}</dt>
91 <dd>{{ session.temperature }}</dd>
92 </dl>
93 {% endif %}
94 {% if session.temperaturemin is not null %}
95 <dl>
96 <dt>{% trans %}Temperature min{% endtrans %}</dt>
97 <dd>{{ session.temperaturemin }}</dd>
98 </dl>
99 {% endif %}
100 {% if session.temperaturemax is not null %}
101 <dl>
102 <dt>{% trans %}Temperature max{% endtrans %}</dt>
103 <dd>{{ session.temperaturemax }}</dd>
104 </dl>
105 {% endif %}
106 </section>
107 <section class="cell">
108 <h3>{% trans %}Location{% endtrans %}</h3>
109 <dl>
110 {# infos #}
111 <dt>{% trans %}Location{% endtrans %}</dt>
112 <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
113 </dl>
114 <dl>
115 {# location #}
116 <dt>{% trans %}Address{% endtrans %}</dt>
117 <dd>
118 {{ session.location.address }}
119 {{ session.location.zipcode }} {{ session.location.city }}
120 </dd>
121 </dl>
122 <dl>
123 <dt>{% trans %}Maps{% endtrans %}</dt>
124 <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
125 <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
126 </dl>
127 <dl>
128 <dt>{% trans %}Minimap{% endtrans %}</dt>
129 <dd>TODO: minimap</dd>
130 </dl>
131 </section>
132 </div>
133 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
134 </div>
135 <div class="panel candidate">
136 <section>
137 <h3>{% trans %}Candidates{% endtrans %}</h3>
138 <div class="grid">
139 {% if session.applications is null %}
140 <section class="cell">
141 {% trans %}None{% endtrans %}
142 </section>
143 {% else %}
144 {% for application in session.applications %}
145 <section class="cell">
146 <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
147 <dl>
148 <dt>{% trans %}Score{% endtrans %}</dt>
149 <dd>
150 {% if application.score is null %}
151 {% trans %}None{% endtrans %}
152 {% else %}
153 {{ application.score }}</dd>
154 {% endif %}
155 </dl>
156 <dl>
157 <dt>{% trans %}Created{% endtrans %}</dt>
158 <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
159 </dl>
160 <dl>
161 <dt>{% trans %}Updated{% endtrans %}</dt>
162 <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>
163 </dl>
164 <dl>
165 <dt>{% trans %}Canceled{% endtrans %}</dt>
166 <dd>
167 {% if application.canceled is null %}
168 {% trans %}None{% endtrans %}
169 {% else %}
170 {{ application.canceled.format('Y-m-d H:i:s') }}
171 {% endif %}
172 </dd>
173 </dl>
174 </section>
175 {% endfor %}
176 {% endif %}
177 </div>
178 </section>
179 </div>
180 </section>
181 {% endblock %}