summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-28 15:02:16 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-28 15:02:16 +0200
commit664d032884dcd6366ca1068aa2c2f35fffc2a285 (patch)
treee2c1b333f550a616a08dbe892cf00a60bd190287 /ogcp/forms/action_forms.py
parentea5b22c35e170deff7321abaca5d81cb289c69f7 (diff)
Add client details action
This action is used to visualize the specific details of a client, such as its IP, Name, MAC, etc.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 6479b48..ac761f5 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -1,5 +1,6 @@
from wtforms import (
- Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField
+ Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField,
+ StringField
)
from flask_wtf import FlaskForm
from flask_babel import _
@@ -27,3 +28,25 @@ class PartitionForm(FlaskForm):
format_partition = BooleanField(label=_('Format'))
modify = SubmitField(label=_('Modify'))
delete = SubmitField(label=_('Delete'))
+
+class ClientDetailsForm(FlaskForm):
+ name = StringField(label=_('Name'))
+ ip = StringField(label=_('IP'))
+ mac = StringField(label=_('MAC'))
+ serial_number = StringField(label=_('Serial Number'))
+ netmask = StringField(label=_('Netmask'))
+ livedir = SelectField(label=_('ogLive'),
+ choices=[('ogLive', 'Default'),])
+ remote = BooleanField(label=_('Remote'))
+ maintenance = BooleanField(label=_('Maintenance'))
+ netiface = SelectField(label=_('Interface'),
+ choices=[('eth0', 'eth0'),
+ ('eth1', 'eth1'),
+ ('eth2', 'eth2')])
+ netdriver = SelectField(label=_('Driver'),
+ choices=[('generic', 'generic')])
+ repo = SelectField(label=_('Repository'),
+ choices=[(1, 'Default')])
+ room = SelectField(label=_('Room'))
+ boot = SelectField(label=_('Boot Mode'))
+ create = SubmitField(label=_('Create'))