From adf2449d373bcd07e2b0ce557beeb1f49d1894e4 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 17 Nov 2022 19:36:25 -0700 Subject: Add the user settings page too --- templates/auth/perform_reset.html | 20 ++++++++++++++++++++ templates/auth/perform_reset_success.html | 14 ++++++++++++++ templates/auth/reset.html | 20 -------------------- templates/auth/reset_success.html | 14 -------------- templates/auth/trigger_reset.html | 18 ++++++++++++++++++ templates/auth/trigger_reset_success.html | 14 ++++++++++++++ templates/settings/_menu.html | 2 +- templates/settings/login_security.html | 17 +++++++++++++++++ 8 files changed, 84 insertions(+), 35 deletions(-) create mode 100644 templates/auth/perform_reset.html create mode 100644 templates/auth/perform_reset_success.html delete mode 100644 templates/auth/reset.html delete mode 100644 templates/auth/reset_success.html create mode 100644 templates/auth/trigger_reset.html create mode 100644 templates/auth/trigger_reset_success.html create mode 100644 templates/settings/login_security.html (limited to 'templates') diff --git a/templates/auth/perform_reset.html b/templates/auth/perform_reset.html new file mode 100644 index 0000000..42eced9 --- /dev/null +++ b/templates/auth/perform_reset.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %}Reset Password{% endblock %} + +{% block content %} +
+ {% csrf_token %} +
+ Reset Password +

You are resetting your password for {{ reset.user.email }}.

+

Please choose your new password below.

+ {% for field in form %} + {% include "forms/_field.html" %} + {% endfor %} +
+
+ +
+
+{% endblock %} diff --git a/templates/auth/perform_reset_success.html b/templates/auth/perform_reset_success.html new file mode 100644 index 0000000..001e5d7 --- /dev/null +++ b/templates/auth/perform_reset_success.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}Password Reset{% endblock %} + +{% block content %} +
+
+ Password Reset +

+ Your password for {{ email }} has been reset! +

+
+
+{% endblock %} diff --git a/templates/auth/reset.html b/templates/auth/reset.html deleted file mode 100644 index 42eced9..0000000 --- a/templates/auth/reset.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Reset Password{% endblock %} - -{% block content %} -
- {% csrf_token %} -
- Reset Password -

You are resetting your password for {{ reset.user.email }}.

-

Please choose your new password below.

- {% for field in form %} - {% include "forms/_field.html" %} - {% endfor %} -
-
- -
-
-{% endblock %} diff --git a/templates/auth/reset_success.html b/templates/auth/reset_success.html deleted file mode 100644 index 001e5d7..0000000 --- a/templates/auth/reset_success.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Password Reset{% endblock %} - -{% block content %} -
-
- Password Reset -

- Your password for {{ email }} has been reset! -

-
-
-{% endblock %} diff --git a/templates/auth/trigger_reset.html b/templates/auth/trigger_reset.html new file mode 100644 index 0000000..b81c380 --- /dev/null +++ b/templates/auth/trigger_reset.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}Reset Password{% endblock %} + +{% block content %} +
+ {% csrf_token %} +
+ Reset Password + {% for field in form %} + {% include "forms/_field.html" %} + {% endfor %} +
+
+ +
+
+{% endblock %} diff --git a/templates/auth/trigger_reset_success.html b/templates/auth/trigger_reset_success.html new file mode 100644 index 0000000..c0c1a0d --- /dev/null +++ b/templates/auth/trigger_reset_success.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}Password Reset Sent{% endblock %} + +{% block content %} +
+
+ Password Reset Sent +

+ Please check your email at {{ email }} for the reset link. +

+
+
+{% endblock %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index d85c878..cc87941 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -8,7 +8,7 @@ {% if request.user.admin %}

Account

- + Login & Security diff --git a/templates/settings/login_security.html b/templates/settings/login_security.html new file mode 100644 index 0000000..701b325 --- /dev/null +++ b/templates/settings/login_security.html @@ -0,0 +1,17 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Login & Security{% endblock %} + +{% block content %} +
+ {% csrf_token %} +
+ Login + {% include "forms/_field.html" with field=form.email %} +
+
+ Password +

To change your password, please trigger a password reset. +

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