From: Raphaƫl Gertz Date: Wed, 14 Oct 2020 01:55:53 +0000 (+0200) Subject: Add session view template X-Git-Tag: 0.1.1~9 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/c1bc1180dd9d1df1290271188a8584e44e5702d9?ds=sidebyside Add session view template --- diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig new file mode 100644 index 0000000..1369cdb --- /dev/null +++ b/Resources/views/session/view.html.twig @@ -0,0 +1,82 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

+ {{ session.location.title }} + {{ session.title }} +

+
+
+
+
+

{% trans %}Location{% endtrans %}

+
{{ session.location.title }}
+
+
+

{% trans %}Slot{% endtrans %}

+
{{ session.slot.title }}
+
+
+

{% trans %}Created{% endtrans %}

+
{{ session.created.format('Y-m-d H:i:s') }}
+
+
+

{% trans %}Updated{% endtrans %}

+
{{ session.updated.format('Y-m-d H:i:s') }}
+
+
+
+
+

{% trans %}Attributed to{% endtrans %}

+ {% if session.application is null %} +
{% trans %}None{% endtrans %}
+ {% else %} +
{{ session.application.user.title }}
+ {% endif %} +
+
+

{% trans %}Begin{% endtrans %}

+ {% if session.begin is null %} +
{% trans %}None{% endtrans %}
+ {% else %} +
{{ session.begin.format('Y-m-d H:i:s') }}
+ {% endif %} +
+
+

{% trans %}End{% endtrans %}

+ {% if session.end is null %} +
{% trans %}None{% endtrans %}
+ {% else %} +
{{ session.end.format('Y-m-d H:i:s') }}
+ {% endif %} +
+
+
+

{% trans %}Candidates{% endtrans %}

+
+ {% if session.applications is null %} + {% trans %}None{% endtrans %} + {% else %} + {% for application in session.applications %} +
+

{{ application.user.title }}

+
+
+
{% trans %}Created{% endtrans %}
+
{{ application.created.format('Y-m-d H:i:s') }}
+
+
+
{% trans %}Updated{% endtrans %}
+
{{ application.updated.format('Y-m-d H:i:s') }}
+
+
+
+ {% endfor %} + {% endif %} +
+
+
+ {{ include('@RapsysAir/form/_toolbox.html.twig') }} +
+
+{% endblock %}