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