summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-02-17 10:06:10 +0000
committerJose M. Guisado <jguisado@soleta.eu>2021-02-17 13:40:06 +0000
commit20f88065bb79d4c19611873c7b22d57387a32727 (patch)
tree2639488ef11cfdec95b69e2a51db87e365166523 /ogcp/forms/action_forms.py
parente68eb7a3da8b60b6af1bff0cce74b22fdae26095 (diff)
Add boot mode to actions
This action is related to /mode in ogServer API. Allows changing the netboot template for a set of given clients, previously selected in the /scopes view.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index a73b4d1..44e2d58 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -76,6 +76,11 @@ class ClientDetailsForm(FlaskForm):
boot = SelectField(label=_('Boot Mode'))
create = SubmitField(label=_('Create'))
+class BootModeForm(FlaskForm):
+ ips = HiddenField()
+ boot = SelectField(label=_('Boot mode'))
+ ok = SubmitField(label=_('Ok'))
+
class ImageCreateForm(FlaskForm):
ip = HiddenField()
os = SelectField(label=_('OS'), choices=[])