From c44caf524074acea5cc46dd151c530f755ebe141 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 29 Nov 2020 07:52:25 +0100 Subject: [PATCH] Change layout to have only section with subtitle inside --- Resources/views/session/view.html.twig | 130 ++++++++++++------------- 1 file changed, 64 insertions(+), 66 deletions(-) diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index fe341d5..3fbdd73 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -1,81 +1,79 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
+

{{ 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 %}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 %} +
+
+ {{ include('@RapsysAir/form/_toolbox.html.twig') }} +
+
+
+

{% 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') }}
-
-
-
+
+

{{ 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 %} -- 2.41.1