From 0f5ba31c09067b7ee10fc376b8f899f9086050c7 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Tue, 12 Dec 2023 11:28:44 +0100 Subject: views: Add 'description' field to image details Add a 'description' field to the image-details form. --- ogcp/forms/action_forms.py | 1 + ogcp/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index ab5a011..d98a00a 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -193,6 +193,7 @@ class DeleteRoomForm(FlaskForm): class ImageDetailsForm(FlaskForm): name = StringField(label=_l('Name')) + description = StringField(label=_l('Description')) size = DecimalField(label=_l('Size (MiB)')) datasize = DecimalField(label=_l('Datasize (MiB)')) modified = StringField(label=_l('Last update')) diff --git a/ogcp/views.py b/ogcp/views.py index 2828d4a..f64d33c 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1928,6 +1928,7 @@ def action_image_info(): form.modified.data = image['modified'] form.permissions.data = image['permissions'] form.software_id.data = image['software_id'] + form.description.data = image['description'] responses = multi_request('get', '/images') -- cgit v1.2.3-18-g5258