diff options
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 5cabd54..a60115c 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -7,7 +7,7 @@ from wtforms import ( Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField, - StringField, RadioField, FormField, FieldList, DecimalField + StringField, RadioField, FormField, FieldList, DecimalField, TextAreaField ) from wtforms.validators import InputRequired from flask_wtf import FlaskForm @@ -119,6 +119,11 @@ class ClientDetailsForm(FlaskForm): boot = SelectField(label=_l('Boot Mode')) create = SubmitField(label=_l('Create')) +class ImportClientsForm(FlaskForm): + room = SelectField(label=_l('Room')) + dhcpd_conf = TextAreaField(label=_l('dhcpd configuration')) + import_btn = SubmitField(label=_l('Import')) + class BootModeForm(FlaskForm): ips = HiddenField() boot = SelectField(label=_l('Boot mode')) |