From 7946d6d82164bfa56906ad99152b6fb792352068 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 01:41:07 +0100 Subject: [PATCH] Switch to new header system Switch to article container Use common location template Improve each event display --- Resources/views/user/index.html.twig | 40 +++++++---------- Resources/views/user/view.html.twig | 66 ++++++++++------------------ 2 files changed, 40 insertions(+), 66 deletions(-) diff --git a/Resources/views/user/index.html.twig b/Resources/views/user/index.html.twig index 2cfc6c8..2e3b1bd 100644 --- a/Resources/views/user/index.html.twig +++ b/Resources/views/user/index.html.twig @@ -1,22 +1,25 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
-

{{ section }}

+
+
+

{{ section }}

+

{{ description }}

+
- {% if organizers is defined and organizers %} -
- {% for group, users in organizers %} -
+ {% if users is defined and users %} +
+ {% for group, list in users %} +
+
{% endfor %} {#{% for date, day in organizers %} -
+

{{ day.title }}

{% if day.sessions is not empty %}
    @@ -33,23 +36,12 @@ {% else %}   {% endif %} -
+ {% endfor %}#} {% endif %} {{ include('@RapsysAir/form/_toolbox.html.twig') }} -
- {% if locations is defined and locations %} -
-

{% trans %}Locations{% endtrans %}

-
- {% for id, title in locations %} -
-

{{ title }}

-
- {% endfor %} -
-
- {% endif %} + + {{ include('@RapsysAir/default/_location.html.twig') }} {% endblock %} diff --git a/Resources/views/user/view.html.twig b/Resources/views/user/view.html.twig index 2484783..0a183f4 100644 --- a/Resources/views/user/view.html.twig +++ b/Resources/views/user/view.html.twig @@ -1,27 +1,36 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
-

{{ section }}

-
+
+
+

{{ section }}

+

{{ description }}

+
+
{% if calendar is defined and calendar %} -
+
{% for date, day in calendar %} -
+

{{ day.title }}

{% if day.sessions is not empty %} - {% else %} -   {% endif %}
{% endfor %} @@ -29,33 +38,6 @@ {% endif %} {{ include('@RapsysAir/form/_toolbox.html.twig') }}
-
- {% if locations is defined and locations %} -
-

{% trans %}Locations{% endtrans %}

-
- {% for id, title in locations %} -
-

{{ title }}

- {% if snippets is defined and snippets[id] is defined and snippets[id] %} - {{ form_start(snippets[id]) }} -
- {{ form_row(snippets[id].description) }} - - {{ form_row(snippets[id].submit) }} - - {% if snippets[id].delete is defined %} - {{ form_row(snippets[id].delete) }} - {% endif %} -
- - {# render csrf token etc .#} - - {{ form_end(snippets[id]) }} - {% endif %} -
- {% endfor %} -
-
- {% endif %} + + {{ include('@RapsysAir/default/_location.html.twig') }} {% endblock %} -- 2.41.1