summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/delete_image.html
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-01-27 16:51:35 +0100
committerJose M. Guisado <jguisado@soleta.eu>2022-01-27 16:51:35 +0100
commit31b1e920772ce6dd56f3f56b5a882c2f71333c13 (patch)
treeacd9cab08f7a7fb5691828be7394d3fbf0c76855 /ogcp/templates/actions/delete_image.html
parentb566528012aabfc435f82525d84471ab7bbcff74 (diff)
Add confirmation page when deleting image
User can confirm when deleting an image by double checking the information displayed on this page. Adds a new optional field in GenericForm: 'ids'. Used when dealing with ids instead of ips.
Diffstat (limited to 'ogcp/templates/actions/delete_image.html')
-rw-r--r--ogcp/templates/actions/delete_image.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/ogcp/templates/actions/delete_image.html b/ogcp/templates/actions/delete_image.html
new file mode 100644
index 0000000..608375f
--- /dev/null
+++ b/ogcp/templates/actions/delete_image.html
@@ -0,0 +1,20 @@
+{% extends 'images.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% block content %}
+
+{{ args }}
+
+<h1 class="m-5">
+ {{ _('Delete image %(image_name)s', image_name=image_name) }}
+</h1>
+
+{{ wtf.quick_form(form,
+ action=url_for('action_image_delete'),
+ method='post',
+ button_map={'submit': 'primary'},
+ extra_classes="mx-5") }}
+
+{% endblock %}
+
+