2018-07-07 15:11:27 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block main %}
|
2018-07-23 21:07:53 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<h1>Welcome, {{ username }}</h1>
|
|
|
|
|
|
|
|
<svg id="touchkey-svg" width="400" height="400"></svg>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<form method="post" action="/touchkey" id="loginform" accept-charset="UTF-8">
|
2018-07-07 15:11:27 +02:00
|
|
|
<input type="hidden" name="uid" value="{{ uid }}" />
|
|
|
|
<input type="hidden" name="username" value="{{ username }}" />
|
|
|
|
<input type="hidden" name="touchkey" value="" id="loginform-touchkey-value" />
|
2024-11-23 04:35:05 +01:00
|
|
|
{% if buypid %}
|
2024-12-07 15:50:37 +01:00
|
|
|
<input type="hidden" name="buypid" value="{{ buypid }}" />
|
2024-11-23 04:35:05 +01:00
|
|
|
{% endif %}
|
2024-12-07 15:50:37 +01:00
|
|
|
</form>
|
2024-11-27 23:43:23 +01:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<a class="btn btn-secondary" href="/">Cancel</a>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<script src="/static/js/touchkey.js"></script>
|
|
|
|
<script>
|
2018-07-07 15:11:27 +02:00
|
|
|
initTouchkey(false, 'touchkey-svg', 'loginform', 'loginform-touchkey-value');
|
2024-12-07 15:50:37 +01:00
|
|
|
</script>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
{{ super() }}
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2024-11-23 04:35:05 +01:00
|
|
|
{% endblock %}
|
2024-11-27 23:43:23 +01:00
|
|
|
|
2024-12-09 22:07:54 +01:00
|
|
|
{% block barcodewebsocket %}
|
|
|
|
document.location = "/?barcode=" + e.data;
|
2024-11-27 23:43:23 +01:00
|
|
|
{% endblock %}
|