From edf75e4315679cd018bc6144f84f71c82601e600 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 14 Oct 2020 03:52:20 +0200 Subject: [PATCH 1/1] Add common toolbox --- Resources/views/form/_toolbox.html.twig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Resources/views/form/_toolbox.html.twig diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig new file mode 100644 index 0000000..12e6191 --- /dev/null +++ b/Resources/views/form/_toolbox.html.twig @@ -0,0 +1,10 @@ +{# Display application or login form #} +{% if is_granted('ROLE_GUEST') %} +
+ {{ include('@RapsysAir/form/_application.html.twig') }} +
+{% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %} +
+ {{ include('@RapsysAir/form/_login.html.twig') }} +
+{% endif %} -- 2.41.1