diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-17 10:06:10 +0000 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-17 13:40:06 +0000 |
commit | 20f88065bb79d4c19611873c7b22d57387a32727 (patch) | |
tree | 2639488ef11cfdec95b69e2a51db87e365166523 /ogcp/forms | |
parent | e68eb7a3da8b60b6af1bff0cce74b22fdae26095 (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')
-rw-r--r-- | ogcp/forms/action_forms.py | 5 |
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=[]) |