From ecf17aeabff45492411a9facce02f3635eec91bb Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sun, 4 Sep 2022 22:40:25 -0500 Subject: [PATCH 1/2] Use form for purge user submission Signed-off-by: jolheiser --- templates/admin/user/edit.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 7aeaa2537ce1e..7b626a5d0ff5c 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -151,7 +151,7 @@
-
{{.locale.Tr "admin.users.delete_account"}}
+
{{.locale.Tr "admin.users.delete_account"}}
@@ -214,7 +214,16 @@

{{.locale.Tr "admin.users.purge_help"}}

- {{template "base/delete_modal_actions" .}} +
+
+ {{svg "octicon-x"}} + {{.locale.Tr "modal.no"}} +
+ +
{{template "base/footer" .}} From face1c7c63310f9b5549b919134d044e62fccc4f Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 8 Sep 2022 12:25:35 -0500 Subject: [PATCH 2/2] Remove unused form ID Signed-off-by: jolheiser --- templates/admin/user/edit.tmpl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 7b626a5d0ff5c..9e0f1d89fd15e 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -206,7 +206,6 @@
{{$.CsrfTokenHtml}} -