aboutsummaryrefslogtreecommitdiffstats
path: root/templates/show_entries.html
blob: 5d9ff1ae9ed8f704e0ab2077901921ae3a482d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 %}