]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/blob - templates/user.html
clean slate
[coffee/coffee-flask.git] / templates / user.html
1 {% if name %}
2     <form style="position: absolute; right: 10%">
3         <input type="button" value="logout" onclick="logout()">
4     </form>
5
6     <h1>Hello, {{ name }}!</h1>
7
8     {% if count %}
9     <p>You've had {{ count }} coffee{% if count != 1 %}s{% endif %} today.</p>
10     {% endif %}
11
12     <img src="{{ url_for('coffee_graph_history', _external=True, stamp=stamp) }}">
13     <img src="{{ url_for('coffee_graph_flavors', _external=True, stamp=stamp) }}">
14
15     <p>
16         {% if flavors %}
17         <form>
18         {% for flavor in flavors %}
19         <input type="button" value="{{ flavor }}" onclick="addCoffee(this.value)">
20         {% endfor %}
21         </form>
22         {% endif %}
23     </p>
24
25     <p>
26         <form>
27             <input id="username" type="text" name="name">
28             <input type="button" value="rename" onclick="renameUser()">
29         </form>
30     </p
31 {% else %}
32     login
33 {% endif %}