# HG changeset patch # User Dennis Fink # Date 2014-01-28 11:17:09 # Node ID e1eeb79396c7224d5908a6f659fb1bb0e8ab142a # Parent 9dac928ea7d12c68a465d110dd21b71642bd1361 forget to add forms.py diff --git a/ennstatus/forms.py b/ennstatus/forms.py new file mode 100644 --- /dev/null +++ b/ennstatus/forms.py @@ -0,0 +1,19 @@ +from flask_wtf import Form +from wtforms import SelectField +from wtforms.validators import DataRequired + + +COUNTRIES = [ + ('luxembourg', 'Luxembourg'), + ('united_kingdom', 'United Kingdom'), + ('united_states', 'United States of America'), + ('belgium', 'Belgium'), + ('france', 'France'), + ('germany', 'Germany'), +] + + +class BPMForm(Form): + country = SelectField('Country', + validators=[DataRequired()], + choices=COUNTRIES)