diff --git a/templates/web/login/oauth/login.html.twig b/templates/web/login/oauth/login.html.twig index 2344dc6e79..47546fa69b 100644 --- a/templates/web/login/oauth/login.html.twig +++ b/templates/web/login/oauth/login.html.twig @@ -31,19 +31,18 @@
{{ auth_macro.flashes() }}
-
-
- {{ form_errors(form) }} + {% if form.vars.errors|length > 0 %} +
+
+ {{ form_errors(form) }} +
-
+ {% endif %}
{{ auth_macro.fieldInput(form.email, "loginForm", 'icon-envelope') }} @@ -122,3 +121,8 @@ {% block footer_scaffholding %} {# empty footer #} {% endblock footer_scaffholding %} + +{% block scripts %} + {{ parent() }} + +{% endblock %} diff --git a/templates/web/login/providers/bind.html.twig b/templates/web/login/providers/bind.html.twig index 7f23c2b90b..59110b92d9 100644 --- a/templates/web/login/providers/bind.html.twig +++ b/templates/web/login/providers/bind.html.twig @@ -37,19 +37,18 @@
{{ auth_macro.flashes() }} -
-
- {{ form_errors(form) }} + {% if form.vars.errors|length > 0 %} +
+
+ {{ form_errors(form) }} +
-
+ {% endif %}
{{ auth_macro.fieldInput(form.login, "loginForm", 'icon-envelope') }} @@ -86,3 +85,8 @@
{% include "login/include/register-link-block.html.twig" with {"login" : login, "last_item" : app['registration.enabled']} %} {% endblock %} + +{% block scripts %} + {{ parent() }} + +{% endblock %} diff --git a/templates/web/login/providers/mapping.html.twig b/templates/web/login/providers/mapping.html.twig index 113651917d..9803dab83a 100644 --- a/templates/web/login/providers/mapping.html.twig +++ b/templates/web/login/providers/mapping.html.twig @@ -55,19 +55,18 @@
{{ auth_macro.flashes() }} -
-
- {{ form_errors(form) }} + {% if form.vars.errors|length > 0 %} +
+
+ {{ form_errors(form) }} +
-
+ {% endif %}