From 3d95adfa00bfa0d9bc515d0c9c8479bccd65407b Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 4 Jan 2022 16:46:44 +0100 Subject: logout user if token expired + set password page --- accounts/templates/accounts/index.html | 51 ++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 6 deletions(-) (limited to 'accounts/templates') diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index 341fd7d..06dcff2 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -313,12 +313,13 @@ +
-
Collegamento con MiData
+
Collegamento con MiData
{% if midata_user %} @@ -354,10 +355,49 @@
{% endif %} +
+
+
Cambia password
+
+
+
+
+
+ {% csrf_token %} + + {% if usable_password %} +
+
+ + +
+
+ {% else %} + + {% endif %} +
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
+
+
+
- {% endblock %} {% block script %} @@ -414,10 +454,9 @@ $(document).ready(function() { $('.datepicker').datepicker(options); $('.tabs').tabs(); $('select').formSelect(); - {% if error %} - M.toast({html: '{{ error_text}}', classes: 'orange'}) - {% endif %} - + {% for error in errors %} + M.toast({html: '{{ error }}', classes: 'orange'}) + {% endfor %} document.getElementById("vac_certificate").onchange = function() { for (i=0; i < this.files.length; i++) { if(this.files[i].size > 1048576*10) { -- cgit v1.2.1