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