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-Tag: 0.1.3~15 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/0f7d3aa708213b7cbf2c6f899c2e7497e902fa2d?ds=inline;hp=b784ac8165e5b04c470f0ebef4c909272bb572ac 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 %}