diff options
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/delete_image.html | 20 | ||||
-rw-r--r-- | ogcp/templates/images.html | 2 |
2 files changed, 21 insertions, 1 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 %} + + diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html index e198e6c..2a67e58 100644 --- a/ogcp/templates/images.html +++ b/ogcp/templates/images.html @@ -28,6 +28,6 @@ <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"> + form="imagesForm" formaction="{{ url_for('action_image_delete') }}" formmethod="get"> {% endblock %} |