From: Raphaƫl Gertz Date: Mon, 19 Oct 2020 07:43:24 +0000 (+0200) Subject: Add location.view, session.index and user.view twig templates X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/173712038c0de2ed1001603b74dfa8f255b5e6f4 Add location.view, session.index and user.view twig templates --- 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 %}