From 80e5ebc04346b1aba37158dedbdd4045c0a7c042 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 10 Jun 2023 06:31:09 -0400 Subject: Moved files to src directory. Continued work on frontend. --- src/forms.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/forms.py (limited to 'src/forms.py') diff --git a/src/forms.py b/src/forms.py new file mode 100644 index 0000000..ee08c0e --- /dev/null +++ b/src/forms.py @@ -0,0 +1,10 @@ +import flask_wtf, wtforms + +class WeatherForm(flask_wtf.FlaskForm): + location = wtforms.StringField("Location") + submit = wtforms.SubmitField("Submit") + +class LocationForm(flask_wtf.FlaskForm): + location = wtforms.SelectField("Location") + submit = wtforms.SubmitField("Submit") + -- cgit v1.2.3