summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-23 15:10:29 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-23 15:10:29 +0200
commit904989b175bda9c68cb9f5750ed5883b9113d834 (patch)
treef4147d8c66a27402cc8291cdb408ba8154ec36b0 /ogcp/forms
parentc5a4ccff550ad69c72f4f8aedba4c4a8457e1dfc (diff)
Add image restore action
This action provides the image restoring functionality on a specific client.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 4dfaa21..eb8d309 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -38,6 +38,14 @@ class SessionForm(FlaskForm):
os = RadioField(label=_('Session'), choices=[])
run = SubmitField(label=_('Run'))
+class ImageRestoreForm(FlaskForm):
+ ips = HiddenField()
+ partition = SelectField(label=_('Partition'), choices=[])
+ image = SelectField(label=_('Image'), choices=[])
+ method = SelectField(label=_('Method'),
+ choices=[('UNICAST', 'Unicast')])
+ restore = SubmitField(label=_('Restore'))
+
class ClientDetailsForm(FlaskForm):
name = StringField(label=_('Name'))
ip = StringField(label=_('IP'))