X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/fee679cb7ede16b0963ada91a595c324f6202a46..46fe6fe0e96c68c83b77e38adc6a02917d84359b:/Resources/views/form/_toolbox.html.twig?ds=sidebyside diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig index 12e6191..7009caa 100644 --- a/Resources/views/form/_toolbox.html.twig +++ b/Resources/views/form/_toolbox.html.twig @@ -1,10 +1,24 @@ -{# 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') }} -
+{# Display login or application form #} +{% if forms is defined and forms %} + {% if forms.login is defined and forms.login %} + + {% else %} + + {% endif %} {% endif %}