aboutsummaryrefslogtreecommitdiff
path: root/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py8
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 @@
1import flask_wtf, wtforms
2
3class 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