aboutsummaryrefslogtreecommitdiffstats
path: root/templates/show_entries.html
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2016-04-11 23:53:38 -0400
committerMatt Kohls <mattkohls13@gmail.com>2016-04-11 23:53:38 -0400
commit614562bf2cf048b049af5304fead92a46f080d3e (patch)
treeb228fbd77cc44d948b3998968f2f6d912ad8c2d9 /templates/show_entries.html
downloadSensor-Server-614562bf2cf048b049af5304fead92a46f080d3e.tar.gz
Sensor-Server-614562bf2cf048b049af5304fead92a46f080d3e.tar.bz2
Sensor-Server-614562bf2cf048b049af5304fead92a46f080d3e.zip
Initial Commit.
Basic webapp that can save/display weather data
Diffstat (limited to 'templates/show_entries.html')
-rw-r--r--templates/show_entries.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/show_entries.html b/templates/show_entries.html
new file mode 100644
index 0000000..5d9ff1a
--- /dev/null
+++ b/templates/show_entries.html
@@ -0,0 +1,23 @@
+{% extends "layout.html" %}
+{% block body %}
+ {% if session.logged_in %}
+ <form action="{{ url_for('add_entry') }}" method=post class=add-entry>
+ <dl>
+ <dt>Temperature:
+ <dd><input type=number size=30 name=temperature>
+ <dt>Humidity:
+ <dd><input type=number size=30 name=humidity>
+ <dt>Pressure:
+ <dd><input type=number size=30 name=pressure>
+ <dd><input type=submit value=Submit>
+ </dl>
+ </form>
+ {% endif %}
+ <ul class=weather>
+ {% for entry in weather %}
+ <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }}
+ {% else %}
+ <li><em>No entries here so far</em>
+ {% endfor %}
+ </ul>
+{% endblock %}