From da9b2ea9c2ef37eb191ba0a9e78e62ce942dc912 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 3 Sep 2021 14:51:15 +0200 Subject: Add image details action This action is used to visualize the specific details of an image, as its ID, name, size, etc. --- ogcp/forms/action_forms.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 1722d8b..d881065 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -7,7 +7,7 @@ from wtforms import ( Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField, - StringField, RadioField, FormField, FieldList + StringField, RadioField, FormField, FieldList, DecimalField ) from wtforms.validators import InputRequired from flask_wtf import FlaskForm @@ -143,3 +143,12 @@ class DeleteRoomForm(FlaskForm): room = SelectField(label=_('Room'), validators=[InputRequired()]) submit = SubmitField(label=_('Submit')) + +class ImageDetailsForm(FlaskForm): + id = StringField(label=_('Id')) + name = StringField(label=_('Name')) + size = DecimalField(label=_('Size (GiB)')) + datasize = DecimalField(label=_('Datasize (GiB)')) + modified = StringField(label=_('Modified')) + permissions = StringField(label=_('Permissions')) + software_id = StringField(label=_('Software id')) -- cgit v1.2.3-18-g5258