diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-10-23 15:10:29 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-10-23 15:10:29 +0200 |
commit | 904989b175bda9c68cb9f5750ed5883b9113d834 (patch) | |
tree | f4147d8c66a27402cc8291cdb408ba8154ec36b0 /ogcp/forms/action_forms.py | |
parent | c5a4ccff550ad69c72f4f8aedba4c4a8457e1dfc (diff) |
Add image restore action
This action provides the image restoring functionality on a specific
client.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 8 |
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')) |