templates: add image name to title in image/config

Add image name to the title in the view image/config.
master
Alejandro Sirgo Rica 2024-09-04 10:42:14 +02:00
parent 3f06fe23aa
commit 23b49f0a6a
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
{% block content %}
<h2 class="mx-5 subhead-heading">{{_('Update image')}}</h2>
<h2 class="mx-5 subhead-heading">{{_('Update image')}} {{ form.name.data }}</h2>
<form class="form mx-5" method="POST" action="{{ url_for('action_image_config') }}">
{{ form.hidden_tag() }}

View File

@ -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: