-
- {{ form_errors(form) }}
+ {% if form.vars.errors|length > 0 %}
+
+
+ {{ form_errors(form) }}
+
-
+ {% endif %}
{{ auth_macro.fieldInput(form.email, "forgottenPasswordForm", "icon-envelope") }}
@@ -53,3 +52,8 @@
{% endblock %}
+
+{% block scripts %}
+ {{ parent() }}
+
+{% endblock %}
diff --git a/templates/web/login/index.html.twig b/templates/web/login/index.html.twig
index 9d26ec8cb7..ff81759490 100644
--- a/templates/web/login/index.html.twig
+++ b/templates/web/login/index.html.twig
@@ -16,11 +16,6 @@
{% endfor %}
{% endblock %}
-{% block header_javascript %}
- {{ parent() }}
- {% include "login/common/templates.html.twig" %}
-{% endblock header_javascript %}
-
{% block sidebar %}