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