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