summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-22 11:04:57 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-22 11:04:57 +0200
commitc5a4ccff550ad69c72f4f8aedba4c4a8457e1dfc (patch)
treecd716807634ff5798c49a8cfad0bf50253117c0d /ogcp/forms
parente978c30b9ffd60b5c7a8e05cf193c1b11a6f87ba (diff)
Add session action
This action provides the functionality to run one of the installed OSs in a client.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 39dae81..4dfaa21 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -1,6 +1,6 @@
from wtforms import (
Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField,
- StringField
+ StringField, RadioField
)
from flask_wtf import FlaskForm
from flask_babel import _
@@ -33,6 +33,11 @@ class HardwareForm(FlaskForm):
ips = HiddenField()
refresh = SubmitField(label=_('Refresh'))
+class SessionForm(FlaskForm):
+ ips = HiddenField()
+ os = RadioField(label=_('Session'), choices=[])
+ run = SubmitField(label=_('Run'))
+
class ClientDetailsForm(FlaskForm):
name = StringField(label=_('Name'))
ip = StringField(label=_('IP'))