From a6c93c37dabfc2e393550924a8ac7d0e604294ed Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 22 Apr 2021 11:55:17 -0400 Subject: [PATCH] Move user account deletion to confirmation modal This mimics the admin UI for deleting a user account. Ref T319 --- templates/user/settings.tmpl | 69 ++++++++++++++++++++++++++++++------ 1 file changed, 58 insertions(+), 11 deletions(-) diff --git a/templates/user/settings.tmpl b/templates/user/settings.tmpl index 70c4ac1..c17a99f 100644 --- a/templates/user/settings.tmpl +++ b/templates/user/settings.tmpl @@ -3,6 +3,9 @@
+
+ {{if .Silenced}} {{template "user-silenced"}} {{end}} @@ -76,8 +84,6 @@ h3 { font-weight: normal; } {{end}} {{ if .OauthSection }} -
- {{ if .OauthAccounts }}

Linked Accounts

@@ -153,18 +159,38 @@ h3 { font-weight: normal; } {{ end }} {{ if not .IsAdmin }} -
-

Delete Account

-

Danger Zone - This cannot be undone

-

This will delete your account and all your blogs and posts. Before continuing make sure to export your data.

-
-

Type your username to confirm deletion.

- - -

+

Incinerator

+
+
+
+

Delete your account

+

Permanently erase all your data, with no way to recover it.

+
+ +
+
{{end}}
+ + + + {{template "footer" .}}