aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_confirm_delete.html.j2
diff options
context:
space:
mode:
authorJan T <jan@jantuomi.fi>2024-02-28 17:32:01 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commitb6bc5c5794b4df182175da34e6b08298084c0324 (patch)
tree501362805ac744eb71e0e9d7b70addb9f0c9ae99 /templates/poll_confirm_delete.html.j2
Initial commit
Diffstat (limited to 'templates/poll_confirm_delete.html.j2')
-rw-r--r--templates/poll_confirm_delete.html.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/poll_confirm_delete.html.j2 b/templates/poll_confirm_delete.html.j2
new file mode 100644
index 0000000..3a6bc83
--- /dev/null
+++ b/templates/poll_confirm_delete.html.j2
@@ -0,0 +1,13 @@
+{% extends "base.html.j2" %}
+
+{% block content %}
+<h2>Confirm deletion of <span class="contrast">{{ poll.title }}</span></h2>
+
+<p>Are you sure you want to delete {{ poll.title }}?</p>
+
+<form action="/manage/{{ poll.manage_code }}/confirm_delete" method="post">
+ <!-- Empty forms make Lynx use HTTP method GET incorrectly, so we add a useless field -->
+ <input type="hidden" name="poll_id" value="{{ poll.id }}">
+ <input class="red" type="submit" value="Yes, delete it">
+</form>
+{% endblock %}