summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-29 14:43:23 +0100
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-29 14:43:23 +0100
commita8d7494ab9601d2ea4fb2065018580fb2a1c95b3 (patch)
tree22bf3ec610b696b5ff12a49762bb2393e3da2c78 /ogcp/forms
parent282984d0ac17236bee19375607fa9a413d0b4057 (diff)
Add image create action
This action handles the creation of the image in the DB as well as the '.img' file.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index eb8d309..154e9f0 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -67,3 +67,10 @@ class ClientDetailsForm(FlaskForm):
room = SelectField(label=_('Room'))
boot = SelectField(label=_('Boot Mode'))
create = SubmitField(label=_('Create'))
+
+class ImageCreateForm(FlaskForm):
+ ip = HiddenField()
+ os = SelectField(label=_('OS'), choices=[])
+ name = StringField(label=_('Image name'))
+ description = StringField(label=_('Description'))
+ create = SubmitField(label=_('Create'))