From ab554e1f401d9679b17e8d590c6e530fecc4fd80 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Wed, 5 Jan 2022 18:07:03 +0100 Subject: force user linked to midata to use midata login --- templates/registration/login.html | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'templates/registration/login.html') diff --git a/templates/registration/login.html b/templates/registration/login.html index cee57d6..9ed5ac4 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -21,7 +21,18 @@
{% csrf_token %} - {{ form.as_p }} +
+
+ + {{ form.username }} +
+
+
+
+ + {{ form.password }} +
+

Password dimenticata
@@ -55,6 +66,15 @@
{% endblock %} +{% block script %} +document.addEventListener('DOMContentLoaded', function() { + {% for field, errors in form.errors.items %} + {% for error in errors %} + M.toast({html: '{{ error }}', classes: 'orange'}) + {% endfor %} + {% endfor %} +}); +{% endblock %} {% block footer %}