diff options
Diffstat (limited to 'forms.py')
-rw-r--r-- | forms.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/forms.py b/forms.py new file mode 100644 index 0000000..804a0f2 --- /dev/null +++ b/forms.py | |||
@@ -0,0 +1,8 @@ | |||
1 | import flask_wtf, wtforms | ||
2 | |||
3 | class WeatherForm(flask_wtf.FlaskForm): | ||
4 | location = wtforms.StringField("Location", validators=[wtforms.validators.DataRequired()]) | ||
5 | days = wtforms.SelectField("Days", choices=[('1','1'),('2','2'),('3','3'),('4','4'),('5','5'),('6','6'),('7','7')]) | ||
6 | forecast_type = wtforms.RadioField("Type", choices=[('hourly', 'Hourly Forecast'),('daily','Daily Forecast')], default="hourly") | ||
7 | submit = wtforms.SubmitField("Submit") | ||
8 | |||