From b3c893bb0d6a9d78316656169293e3d404c477fe Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Fri, 8 Dec 2023 13:55:28 +0000 Subject: [PATCH] Account page with "Delete account" button --- hub/templates/hub/accounts/my_account.html | 41 ++++++++++++++++++++++ hub/templates/hub/includes/header.html | 4 +-- hub/templates/hub/privacy.html | 4 +-- hub/views/accounts.py | 14 +++++++- local_intelligence_hub/urls.py | 1 + 5 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 hub/templates/hub/accounts/my_account.html diff --git a/hub/templates/hub/accounts/my_account.html b/hub/templates/hub/accounts/my_account.html new file mode 100644 index 000000000..1b0be2a6e --- /dev/null +++ b/hub/templates/hub/accounts/my_account.html @@ -0,0 +1,41 @@ +{% extends "hub/base.html" %} + +{% block content %} + +
+
+
+

Your account

+ Sign out +
+ +
+
+
Full name
+
{{ request.user.userproperties.full_name }}
+
Organisation
+
{{ request.user.userproperties.organisation_name }}
+
Email
+
{{ request.user.email }}
+
+

If you need to change these details, please contact us.

+

You can also change your password.

+
+ +
+

Danger zone

+
+
+

Delete your account

+

If you no longer need your account, you can delete it. This cannot be undone.

+
+
+ {% csrf_token %} + +
+
+
+
+
+ +{% endblock %} diff --git a/hub/templates/hub/includes/header.html b/hub/templates/hub/includes/header.html index 24c7fefda..41ae6fe59 100644 --- a/hub/templates/hub/includes/header.html +++ b/hub/templates/hub/includes/header.html @@ -7,11 +7,11 @@