From: Raphaƫl Gertz Date: Wed, 14 Oct 2020 01:52:20 +0000 (+0200) Subject: Add common toolbox X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/fee679cb7ede16b0963ada91a595c324f6202a46 Add common toolbox --- 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 %}