diff options
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py new file mode 100644 index 0000000..d6416bd --- /dev/null +++ b/ogcp/forms/action_forms.py @@ -0,0 +1,10 @@ +from wtforms import Form, SubmitField, HiddenField, SelectField +from flask_wtf import FlaskForm +from flask_babel import _ + +class WOLForm(FlaskForm): + ips = HiddenField() + wol_type = SelectField(label=_('Type'), + choices=[('broadcast', 'Broadcast'), + ('unicast', 'Unicast')]) + submit = SubmitField(label=_('Submit')) |