summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-03 14:51:15 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-03 14:51:15 +0200
commitda9b2ea9c2ef37eb191ba0a9e78e62ce942dc912 (patch)
tree6e54487fc3ab2fb028402c8d84c06efe82caccc9 /ogcp/forms/action_forms.py
parentd83e456daf20e070a3eee51d885166566177c369 (diff)
Add image details action
This action is used to visualize the specific details of an image, as its ID, name, size, etc.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py11
1 files changed, 10 insertions, 1 deletions
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'))