Changeset - e1eeb79396c7
[Not reviewed]
default
0 0 1
Dennis Fink - 11 years ago 2014-01-28 11:17:09
dennis.fink@c3l.lu
forget to add forms.py
1 file changed with 19 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/forms.py
Show inline comments
 
new file 100644
 
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)
0 comments (0 inline, 0 general)