diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-10-22 11:04:57 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-10-22 11:04:57 +0200 |
commit | c5a4ccff550ad69c72f4f8aedba4c4a8457e1dfc (patch) | |
tree | cd716807634ff5798c49a8cfad0bf50253117c0d /ogcp/forms/action_forms.py | |
parent | e978c30b9ffd60b5c7a8e05cf193c1b11a6f87ba (diff) |
Add session action
This action provides the functionality to run one of the installed OSs
in a client.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 7 |
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')) |