From 20f88065bb79d4c19611873c7b22d57387a32727 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 17 Feb 2021 10:06:10 +0000 Subject: 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. --- ogcp/forms/action_forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ogcp/forms') 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=[]) -- cgit v1.2.3-18-g5258