summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-15 11:28:16 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-16 17:17:07 +0100
commite07c8afcce3f16739bbf9e8c52405f327f367977 (patch)
tree3c76acfcfacdb2ec62e7eeadc1190107ce494d54 /ogcp/forms
parent695c19f86ec361db8b316358ac9a0609ecfb020f (diff)
Add set ogLive to commands
This action is related to /oglive in ogServer's API. Allows changing the ogLive for a set of given clients, previously selected in the /commands view.
Diffstat (limited to 'ogcp/forms')
-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 d618f24..e8b607f 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -110,6 +110,11 @@ class BootModeForm(FlaskForm):
boot = SelectField(label=_('Boot mode'))
ok = SubmitField(label=_('Ok'))
+class OgliveForm(FlaskForm):
+ ips = HiddenField()
+ oglive = SelectField(label=_('ogLive'))
+ ok = SubmitField(label=_('Ok'))
+
class ImageCreateForm(FlaskForm):
ip = HiddenField()
os = SelectField(label=_('OS'), choices=[])