diff options
| author | Sam Chudnick <sam@chudnick.com> | 2023-06-11 09:36:33 -0400 | 
|---|---|---|
| committer | Sam Chudnick <sam@chudnick.com> | 2023-06-11 09:36:33 -0400 | 
| commit | b3c58c63f0cba1a67c8669f776b2e7c841e1997a (patch) | |
| tree | 7a2def8ca7195646586fba04150c5a802d9654fa /src/templates | |
| parent | 83f821550b5ddcf8dcb1859294f68868425aa904 (diff) | |
Show location with weather info
Diffstat (limited to 'src/templates')
| -rw-r--r-- | src/templates/weather.html | 19 | 
1 files changed, 13 insertions, 6 deletions
| diff --git a/src/templates/weather.html b/src/templates/weather.html index a222ad8..ccd736c 100644 --- a/src/templates/weather.html +++ b/src/templates/weather.html | |||
| @@ -1,12 +1,19 @@ | |||
| 1 | {% extends 'base.html' %} | 1 | {% extends 'base.html' %} | 
| 2 | {% block content %} | 2 | {% block content %} | 
| 3 | <div class=content> | 3 | <div class=content> | 
| 4 | <div class=searchbar> | 4 | <div class=topbar> | 
| 5 | <form method="post"> | 5 | <div class=searchbar> | 
| 6 | {{ form.csrf_token }} | 6 | <form method="post"> | 
| 7 | {{ form.location }} | 7 | {{ form.csrf_token }} | 
| 8 | {{ form.submit() }} | 8 | {{ form.location }} | 
| 9 | </form> | 9 | {{ form.submit() }} | 
| 10 | </form> | ||
| 11 | </div> | ||
| 12 | <div class=location> | ||
| 13 | <p class=location> | ||
| 14 | {{ location_data["name"]}}, {{ location_data["admin1"]}}, {{ location_data["country_code"]}} | ||
| 15 | </p> | ||
| 16 | </div> | ||
| 10 | </div> | 17 | </div> | 
| 11 | <div class=current> | 18 | <div class=current> | 
| 12 | {% set is_day = data["current_weather"]["is_day"] %} | 19 | {% set is_day = data["current_weather"]["is_day"] %} | 
