diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2023-12-12 11:28:44 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-12 11:42:43 +0100 |
commit | 0f5ba31c09067b7ee10fc376b8f899f9086050c7 (patch) | |
tree | d8442b5b1c461f7fb9fe04defc7e5c403763dc13 /ogcp | |
parent | 84bcdb3cae1ea13cc20bbf88dd9670733f44c02d (diff) |
views: Add 'description' field to image details
Add a 'description' field to the image-details form.
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/forms/action_forms.py | 1 | ||||
-rw-r--r-- | ogcp/views.py | 1 |
2 files changed, 2 insertions, 0 deletions
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') |