diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-16 12:05:04 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-16 12:05:04 +0200 |
commit | 65d2d75ddb3670b39fdca0d67d87a8f48b797059 (patch) | |
tree | 971fdb097b99b820c649a5f7cccef8509d9a74a0 /ogcp/views.py | |
parent | 696a81fd1147e301dd69609558da387f17c57228 (diff) |
templates: improve client report in image create view
Remove the line reporting the IP of the selected client. No other
view does that and that information is already available in the
client pills.
Add client pills widget.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 9a0c8e2..5418018 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -2574,8 +2574,11 @@ def action_image_create(): form.repository.render_kw = {'readonly': True} scopes, clients = get_scopes(set(ips)) + selected_clients = list(get_selected_clients(scopes['scope']).items()) + return render_template('actions/image_create.html', form=form, - scopes=scopes) + scopes=scopes, + selected_clients=selected_clients) @app.route('/action/image/update', methods=['GET', 'POST']) |