From 66640a4ac651adeb192c57a08bf5341a6a739440 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 2 Sep 2020 11:13:37 +0200 Subject: [PATCH] template: add account deletion new templates (#46176) --- templates/authentic2/accounts_delete.html | 22 ----------------- .../authentic2/accounts_delete_request.html | 24 +++++++++++++++++++ .../accounts_delete_validation.html | 18 ++++++++++++++ 3 files changed, 42 insertions(+), 22 deletions(-) delete mode 100644 templates/authentic2/accounts_delete.html create mode 100644 templates/authentic2/accounts_delete_request.html create mode 100644 templates/authentic2/accounts_delete_validation.html diff --git a/templates/authentic2/accounts_delete.html b/templates/authentic2/accounts_delete.html deleted file mode 100644 index 52a5315..0000000 --- a/templates/authentic2/accounts_delete.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "authentic2/base-page.html" %} -{% load i18n %} - -{% block breadcrumb %} - {{ block.super }} - {% trans "Your account" %} - {% trans "Delete account" %} -{% endblock %} - - -{% block content %} -
-
- {% csrf_token %} -

{% trans "Delete my account and all my personal datas ?" %}

- {{ form.as_p }} - - -
-
-{% endblock %} - diff --git a/templates/authentic2/accounts_delete_request.html b/templates/authentic2/accounts_delete_request.html new file mode 100644 index 0000000..baa5d60 --- /dev/null +++ b/templates/authentic2/accounts_delete_request.html @@ -0,0 +1,24 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n %} + +{% block content %} +
+
+ {% csrf_token %} +

+ {% blocktrans trimmed %} + Do you really want to delete your account? + {% endblocktrans %} +

+

+ {% blocktrans trimmed %} + A validation message will be sent to {{ email }}. You will have to visit the + link in this email in order to complete the deletion process. + {% endblocktrans %} +

+ + +
+
+{% endblock %} + diff --git a/templates/authentic2/accounts_delete_validation.html b/templates/authentic2/accounts_delete_validation.html new file mode 100644 index 0000000..2c777d3 --- /dev/null +++ b/templates/authentic2/accounts_delete_validation.html @@ -0,0 +1,18 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n %} + +{% block content %} +
+
+ {% csrf_token %} +

+ {% blocktrans with full_name=user.get_full_name %} + You are about to delete the account of {{ full_name }}. + This will remove all related personal data and you won't be able to log in with this account anymore. + {% endblocktrans %} +

+ + +
+
+{% endblock %}