summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/images.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-29 12:16:32 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-29 17:12:15 +0200
commit3e7801e4872ac81f67e746da89cda43fd00ff592 (patch)
tree40edbacb6b3184535253a59add6fe87222e72f18 /ogcp/templates/images.html
parentf572643605f1337f9da8c451e2f79190b12bafa6 (diff)
Add "Delete image" action
Adds a new button in the images view. This action handles image deletion, one at a time for security. Users must select an image using the images tree.
Diffstat (limited to 'ogcp/templates/images.html')
-rw-r--r--ogcp/templates/images.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html
index 3faa029..e198e6c 100644
--- a/ogcp/templates/images.html
+++ b/ogcp/templates/images.html
@@ -27,5 +27,7 @@
{% block commands %}
<input class="btn btn-light" type="submit" value="{{ _('Image details') }}"
form="imagesForm" formaction="{{ url_for('action_image_info') }}" formmethod="get">
+ <input class="btn btn-light" type="submit" value="{{ _('Delete image') }}"
+ form="imagesForm" formaction="{{ url_for('action_image_delete') }}" formmethod="post">
{% endblock %}