attendance-flask-mini-app/templates/thanks.html

27 lines
761 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
{% if error == 'NO_USERNAME' %}
<h1>Error</h1>
<p>No username received. <a href='https://auth.agofer.net/'>Login here</a>.</p>
{% elif error == 'ALREADY_USED' %}
<h1>Error</h1>
<p>Code has been used already.</p>
{% else %}
<h1>Thanks</h1>
<p><strong>At {{ time }}</strong>,</p>
<p>Registered (entrance? exit?) for user {{ user }} .</p>
<h2>Last 10 registers for {{ user }}:</h2>
<li>
{% for hit in hits %}
<ul>{{ hit['created'] }}</ul>
{% endfor %}
</li>
{% endif %}
</body>
</html>