5 <form style="position: absolute; right: 15%; width: 15%; height: 15%;">
6 <button type="button" id="logout_button" onclick="logout()" style="width: 100%; height: 100%;">logout</button>
9 <h1>Hello, {{ name }}!</h1>
14 {% if counts|length > 0 %}
17 {%- if counts|length > 1 -%}
19 {%- if counts|length > 2 -%}
23 {%- elif not loop.first -%}
33 {%- if c[1] != 1 -%}s{%- endif -%}
38 <img src="{{ url_for('coffee_graph_history', _external=True, stamp=stamp) }}">
39 <img src="{{ url_for('coffee_graph_flavors', _external=True, stamp=stamp) }}">
44 {% for flavor in flavors %}
45 <input type="button" value="{{ flavor }}" onclick="addCoffee(this.value)" style="padding: 1.2%; margin: 3px">
51 <p>Use your card/token to log in...</p>
53 <img src="{{ url_for('coffee_graph_history', _external=True, stamp=stamp) }}">
54 <img src="{{ url_for('coffee_graph_flavors', _external=True, stamp=stamp, days=7) }}">
61 {% include "events.html" %}
63 {##################################}
64 {# User name and chip idnetifiers #}
65 {##################################}
70 <label for="username">Username:</label>
71 <input id="username" type="text" name="name">
72 <input type="button" value="rename" onclick="renameUser()">
76 <table style="padding: 2px">
78 <td colspan="4" align="center"><b>Identifiers:</b></td>
80 {% for id in identifiers %}
82 <td><input type="text" id="identifier_name_{{ loop.index }}" value="{{ id[2] }}" /></td>
83 <td {% if iid == id[1] %} style="font-weight: bold" {% endif %}>#<span id="identifier_{{ loop.index }}">{{ id[1] }}</span></td>
84 <td><input type="button" value="rename" onclick="renameIdentifier({{ loop.index }})" /></td>
85 <td><input type="button" value="remove" onclick="disableIdentifier('{{ id[1] }}')" /></td>
89 <td><input type="button" id="addIdentifier" value="add identifier" onclick="addIdentifier_start()" /></td>
90 <td colspan="2" style="visibility: hidden" id="labelIdentifier"><b>Use your identifier.</b></td>
91 <td><input type="button" id="abortIdentifier" value="abort" disabled onclick="addIdentifier_finish()" /></td>