From 3189aff4a7dc0517e3c321e1b57e84640e4c93f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 01:43:37 +0100 Subject: [PATCH] Switch to new form naming --- Resources/views/form/_toolbox.html.twig | 34 +++++++++++++++---------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig index e969791..14e9593 100644 --- a/Resources/views/form/_toolbox.html.twig +++ b/Resources/views/form/_toolbox.html.twig @@ -1,15 +1,21 @@ -{# Display application or login form #} -{% if is_granted('ROLE_GUEST') %} -
- {% if application is defined %} - {{ include('@RapsysAir/form/_application.html.twig') }} - {% endif %} - {% if session_edit is defined %} - {{ include('@RapsysAir/form/_session_edit.html.twig') }} - {% endif %} -
-{% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %} -
- {{ include('@RapsysAir/form/_login.html.twig') }} -
+{# Display login or application form #} +{% if forms is defined and forms %} + {% if forms.login is defined and forms.login %} + + {% else %} + + {% endif %} {% endif %} -- 2.41.1