X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/d6bc9beb47eb59ae6f19ddc2f3f1a944c8551427..99cbf1604fcbf9a17488abe20954797c17eb2fd2:/Resources/views/form/_toolbox.html.twig
diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig
index e969791..7009caa 100644
--- a/Resources/views/form/_toolbox.html.twig
+++ b/Resources/views/form/_toolbox.html.twig
@@ -1,15 +1,24 @@
-{# 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 %}