summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
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'))