]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/view.html.twig
Avoid double month append
[airbundle] / Resources / views / session / view.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="session">
4 <h2>
5 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
6 </h2>
7 <section class="panel">
8 <section class="grid">
9 <div class="row">
10 <dl class="cell">
11 <dt><h3>{% trans %}Location{% endtrans %}</h3></dt>
12 <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
13 </dl>
14 <dl class="cell">
15 <dt><h3>{% trans %}Slot{% endtrans %}</h3></dt>
16 <dd>{{ session.slot.title }}</dd>
17 </dl>
18 <dl class="cell">
19 <dt><h3>{% trans %}Created{% endtrans %}</h3></dt>
20 <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
21 </dl>
22 <dl class="cell">
23 <dt><h3>{% trans %}Updated{% endtrans %}</h3></dt>
24 <dd>{{ session.updated.format('Y-m-d H:i:s') }}</dd>
25 </dl>
26 </div>
27 <div class="row">
28 <dl class="cell">
29 <dt><h3>{% trans %}Attributed to{% endtrans %}</h3></dt>
30 {% if session.application is null %}
31 <dd>{% trans %}None{% endtrans %}</dd>
32 {% else %}
33 <dd><a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a></dd>
34 {% endif %}
35 </dl>
36 <dl class="cell">
37 <dt><h3>{% trans %}Begin{% endtrans %}</h3></dt>
38 {% if session.begin is null %}
39 <dd>{% trans %}None{% endtrans %}</dd>
40 {% else %}
41 <dd>{{ session.begin.format('Y-m-d H:i:s') }}</dd>
42 {% endif %}
43 </dl>
44 <dl class="cell">
45 <dt><h3>{% trans %}End{% endtrans %}</h3></dt>
46 {% if session.end is null %}
47 <dd>{% trans %}None{% endtrans %}</dd>
48 {% else %}
49 <dd>{{ session.end.format('Y-m-d H:i:s') }}</dd>
50 {% endif %}
51 </dl>
52 </div>
53 <div class="sub">
54 <h3>{% trans %}Candidates{% endtrans %}</h3>
55 <div class="row">
56 {% if session.applications is null %}
57 {% trans %}None{% endtrans %}
58 {% else %}
59 {% for application in session.applications %}
60 <dl class="cell">
61 <dt><h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4></dt>
62 <dd>
63 <dl>
64 <dt>{% trans %}Created{% endtrans %}</dt>
65 <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
66 </dl>
67 <dl>
68 <dt>{% trans %}Updated{% endtrans %}</dt>
69 <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>
70 </dl>
71 </dd>
72 </dl>
73 {% endfor %}
74 {% endif %}
75 </div>
76 </div>
77 </section>
78 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
79 </section>
80 </section>
81 {% endblock %}