From 094fe62c11afbfbb87af0c320935f816ef8a758e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 7 Jul 2023 16:08:55 +0200 Subject: đŸ’„ update password form: improve layout - redirect to start page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../registration/password_change_done.html | 8 ----- .../registration/password_change_form.html | 36 +++++++++++++++++----- 2 files changed, 28 insertions(+), 16 deletions(-) delete mode 100644 ishtar_common/templates/registration/password_change_done.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/registration/password_change_done.html b/ishtar_common/templates/registration/password_change_done.html deleted file mode 100644 index 9d442360c..000000000 --- a/ishtar_common/templates/registration/password_change_done.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block content %} -
-

{% trans "Password changed" %}

-
-{% endblock %} diff --git a/ishtar_common/templates/registration/password_change_form.html b/ishtar_common/templates/registration/password_change_form.html index 84d915eaa..deb7af503 100644 --- a/ishtar_common/templates/registration/password_change_form.html +++ b/ishtar_common/templates/registration/password_change_form.html @@ -2,13 +2,33 @@ {% load i18n %} {% block content %} -
-
{% csrf_token %} - - {{ form.as_table }} +
+
+
+

{% trans "Change password" %}

+ {% csrf_token %} + {% if form.non_field_errors %} +
+ {% for error in form.non_field_errors %} +
+ {{error}} +
+ {% endfor %} +
+ {% endif %} + {% with force_large_col=True %} + {% for field in form %} + {% include "blocks/bs_field_snippet.html" %} + {% endfor %} + {% endwith %} -
-
-
-

+
+
+ +
+
+ +
+ + {% endblock %} -- cgit v1.2.3