From fcbaf7d66d5e344b12b57d8d8c4c182c7497e764 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 6 Apr 2022 17:29:44 +0200 Subject: Add Update image to commands Allows updating the image file for an existing image. This action is related to /image/create in ogServer API. If ogServer receives an POST /image/create without the parameter "description", it does not create a new image and only updates. --- ogcp/templates/actions/image_update.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ogcp/templates/actions/image_update.html (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/image_update.html b/ogcp/templates/actions/image_update.html new file mode 100644 index 0000000..c008aa8 --- /dev/null +++ b/ogcp/templates/actions/image_update.html @@ -0,0 +1,22 @@ +{% extends 'commands.html' %} +{% import 'bootstrap/wtf.html' as wtf %} +{% import 'macros.html' as macros %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_image %} active{% endblock %} +{% block nav_image_update %}active{% endblock %} +{% block content %} + +

{{_('Update partition image')}}

+ +{{ macros.cmd_selected_clients(selected_clients) }} + +{{ wtf.quick_form(form, + action=url_for('action_image_update'), + method='post', + button_map={'update': 'primary'}, + extra_classes='mx-5') }} + +{% endblock %} -- cgit v1.2.3-18-g5258