From 173712038c0de2ed1001603b74dfa8f255b5e6f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 19 Oct 2020 09:43:24 +0200 Subject: [PATCH] Add location.view, session.index and user.view twig templates --- Resources/views/location/view.html.twig | 36 +++++++++++++++++ Resources/views/session/index.html.twig | 52 +++++++++++++++++++++++++ Resources/views/user/view.html.twig | 35 +++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 Resources/views/location/view.html.twig create mode 100644 Resources/views/session/index.html.twig create mode 100644 Resources/views/user/view.html.twig diff --git a/Resources/views/location/view.html.twig b/Resources/views/location/view.html.twig new file mode 100644 index 0000000..f07553c --- /dev/null +++ b/Resources/views/location/view.html.twig @@ -0,0 +1,36 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

{{ section }}

+
+ {% if calendar is defined and calendar %} + + + + {% for date, day in calendar %} + + {% if loop.index % 7 == 0 and not loop.last %} + + + {% endif %} + {% endfor %} + + +
+

{{ day.title }}

+ {% if day.sessions is not empty %} + + {% endif %} +
+ {% endif %} + {{ include('@RapsysAir/form/_toolbox.html.twig') }} +
+ {# dump(calendar) #} +
+{% endblock %} diff --git a/Resources/views/session/index.html.twig b/Resources/views/session/index.html.twig new file mode 100644 index 0000000..58b5cb5 --- /dev/null +++ b/Resources/views/session/index.html.twig @@ -0,0 +1,52 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

{{ section }}

+
+ {% if calendar is defined and calendar %} + + + + {% for date, day in calendar %} + + {% if loop.index % 7 == 0 and not loop.last %} + + + {% endif %} + {% endfor %} + + +
+

{{ day.title }}

+ {% if day.sessions is not empty %} + + {% endif %} +
+ {% endif %} + {{ include('@RapsysAir/form/_toolbox.html.twig') }} +
+
+ {% if locations is defined and locations %} + + + + {% for id, title in locations %} + + {% if loop.index % 7 == 0 and not loop.last %} + + + {% endif %} + {% endfor %} + + +
{{ title }}
+ {% endif %} +
+
+{% endblock %} diff --git a/Resources/views/user/view.html.twig b/Resources/views/user/view.html.twig new file mode 100644 index 0000000..94585cc --- /dev/null +++ b/Resources/views/user/view.html.twig @@ -0,0 +1,35 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

{{ section }}

+
+ {% if calendar is defined and calendar %} + + + + {% for date, day in calendar %} + + {% if loop.index % 7 == 0 and not loop.last %} + + + {% endif %} + {% endfor %} + + +
+

{{ day.title }}

+ {% if day.sessions is not empty %} + + {% endif %} +
+ {% endif %} + {{ include('@RapsysAir/form/_toolbox.html.twig') }} +
+
+{% endblock %} -- 2.41.1