diff options
| author | Sam Chudnick <sam@chudnick.com> | 2023-06-04 17:47:00 -0400 |
|---|---|---|
| committer | Sam Chudnick <sam@chudnick.com> | 2023-06-04 17:47:00 -0400 |
| commit | 52cd654f581e7986de524a97e9ae61bf38324228 (patch) | |
| tree | 7c7d589d39a3ca010278b9a0aaefa2cd5dcf3797 /templates/index.html | |
| parent | c023b5704d49679989ddae60851b82f051f4ac2f (diff) | |
Started turning into flask app
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..2d97379 --- /dev/null +++ b/templates/index.html | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | {% extends 'base.html' %} | ||
| 2 | |||
| 3 | {% block content %} | ||
| 4 | <h1>{% block title %} Enter a Location {% endblock %}</h1> | ||
| 5 | <form method="post"> | ||
| 6 | {{ form.csrf_token }} | ||
| 7 | <p> | ||
| 8 | {{ form.location.label }} <br> | ||
| 9 | {{ form.location }} | ||
| 10 | </p> | ||
| 11 | <p> | ||
| 12 | {{ form.days.label }} <br> | ||
| 13 | {{ form.days }} | ||
| 14 | </p> | ||
| 15 | <p> | ||
| 16 | {{ form.forecast_type.label }} <br> | ||
| 17 | {{ form.forecast_type }} | ||
| 18 | </p> | ||
| 19 | <p>{{ form.submit() }}</p> | ||
| 20 | </form> | ||
| 21 | {% endblock %} | ||
| 22 | |||
| 23 | <form method="POST" action="/"> | ||
| 24 | {{ form.name.label }} {{ form.name(size=20) }} | ||
| 25 | <input type="submit" value="Go"> | ||
| 26 | </form> | ||
