From 52cd654f581e7986de524a97e9ae61bf38324228 Mon Sep 17 00:00:00 2001 From: Sam Chudnick <sam@chudnick.com> Date: Sun, 4 Jun 2023 17:47:00 -0400 Subject: Started turning into flask app --- templates/index.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 templates/index.html (limited to 'templates/index.html') 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 @@ +{% extends 'base.html' %} + +{% block content %} +<h1>{% block title %} Enter a Location {% endblock %}</h1> +<form method="post"> + {{ form.csrf_token }} + <p> + {{ form.location.label }} <br> + {{ form.location }} + </p> + <p> + {{ form.days.label }} <br> + {{ form.days }} + </p> + <p> + {{ form.forecast_type.label }} <br> + {{ form.forecast_type }} + </p> + <p>{{ form.submit() }}</p> +</form> +{% endblock %} + +<form method="POST" action="/"> + {{ form.name.label }} {{ form.name(size=20) }} + <input type="submit" value="Go"> +</form> -- cgit v1.2.3