summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/auth/delete_user.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:21:09 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:34:36 +0200
commit72c10e15298aef311eed2aeb4774bf78029ea075 (patch)
tree19ecae9e6c809118af0c58af6c21c135496a08dc /ogcp/templates/auth/delete_user.html
parenteb8ddd236acac593cce7c341d84a5ab3da834aff (diff)
Add 'Delete user' to Users sectionv0.9.2
Creates "Delete user" form. The user to be deleted is selected from the sidebar in Users section.
Diffstat (limited to 'ogcp/templates/auth/delete_user.html')
-rw-r--r--ogcp/templates/auth/delete_user.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/ogcp/templates/auth/delete_user.html b/ogcp/templates/auth/delete_user.html
new file mode 100644
index 0000000..42301ae
--- /dev/null
+++ b/ogcp/templates/auth/delete_user.html
@@ -0,0 +1,17 @@
+{% extends 'users.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% set sidebar_state = 'disabled' %}
+{% set btn_back = true %}
+
+{% block nav_user_edit %}active{% endblock %}
+{% block content %}
+
+<h1 class="m-5">{{_('Delete user {}').format(form.username.data)}}</h1>
+
+{{ wtf.quick_form(form,
+ action=url_for('user_delete_post'),
+ method='post',
+ button_map={'submit_btn':'primary'}) }}
+
+{% endblock %}