aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-04-07 20:55:36 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commitee619af4367224dbc271962120493b2326a15a00 (patch)
tree77d5bc959fc7f8c561ba8d07456b30282418ad6b /templates
parent0b5b97c74803d1c8f06b380ad7c575109f9730ae (diff)
Add a confirmation screen when deleting submission
Diffstat (limited to 'templates')
-rw-r--r--templates/voter_confirm_delete.html.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/voter_confirm_delete.html.j2 b/templates/voter_confirm_delete.html.j2
new file mode 100644
index 0000000..faa175a
--- /dev/null
+++ b/templates/voter_confirm_delete.html.j2
@@ -0,0 +1,12 @@
+{% extends "base.html.j2" %}
+
+{% block content %}
+<h2>Confirm deletion of voter <span class="contrast">{{ voter_name }}</span></h2>
+
+<p>Are you sure you want to delete the submission by {{ voter_name }}?</p>
+
+<form action="/poll/{{ poll_id }}/confirm_delete_voter" method="post">
+ <input type="hidden" name="voter_code" value="{{ voter_code }}">
+ <input class="red" type="submit" value="Yes, delete it">
+</form>
+{% endblock %}