X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/20e31fb0deec47be43c48c28dc31267b49f02de5..9ea61d2e082e341a554fea43e22f25f7f09bfdd1:/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 e969791..916093e 100644 --- a/Resources/views/form/_toolbox.html.twig +++ b/Resources/views/form/_toolbox.html.twig @@ -1,15 +1,25 @@ -{# Display application or login form #} -{% if is_granted('ROLE_GUEST') %} -
- {% if application is defined %} - {{ include('@RapsysAir/form/_application.html.twig') }} +{# Display login or application form #} +{% if forms is defined and forms %} +
-{% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %} -
- {{ include('@RapsysAir/form/_login.html.twig') }} -
+ {% endif %}