From 23b49f0a6aa2579b174c003051af4ad1066b8014 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 4 Sep 2024 10:42:14 +0200 Subject: templates: add image name to title in image/config Add image name to the title in the view image/config. --- ogcp/templates/actions/image_config.html | 2 +- ogcp/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ogcp/templates/actions/image_config.html b/ogcp/templates/actions/image_config.html index c286683..f72a126 100644 --- a/ogcp/templates/actions/image_config.html +++ b/ogcp/templates/actions/image_config.html @@ -5,7 +5,7 @@ {% block content %} -

{{_('Update image')}}

+

{{_('Update image')}} {{ form.name.data }}

{{ form.hidden_tag() }} diff --git a/ogcp/views.py b/ogcp/views.py index 692bef1..705605b 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -3914,6 +3914,7 @@ def action_image_config(): server = get_server_from_ip_port(params['image-server']) form.image_id.data = image_id + form.name.data = image_name r = server.get('/image/restrict', {'image': int(image_id)}) if not r: -- cgit v1.2.3-18-g5258