X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/edf75e4315679cd018bc6144f84f71c82601e600..932f56b35e3ba155db515d27068344ae73f254fe:/Resources/views/form/_toolbox.html.twig?ds=inline diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig index 12e6191..916093e 100644 --- a/Resources/views/form/_toolbox.html.twig +++ b/Resources/views/form/_toolbox.html.twig @@ -1,10 +1,25 @@ -{# 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 %} + {% endif %}