1
0
Fork 0
forked from s3lph/matemat
matemat/templates/touchkey.html
s3lph 67e2a813d5
feat: redesign ui using bootstrap
feat: split user settings and admin settings
fix: list user tokens in admin user settings
feat!: remove osk, osk should be provided by kiosk browser
2024-12-07 15:53:19 +01:00

31 lines
859 B
HTML

{% extends "base.html" %}
{% block main %}
<h1>Welcome, {{ username }}</h1>
<svg id="touchkey-svg" width="400" height="400"></svg>
<form method="post" action="/touchkey" id="loginform" accept-charset="UTF-8">
<input type="hidden" name="uid" value="{{ uid }}" />
<input type="hidden" name="username" value="{{ username }}" />
<input type="hidden" name="touchkey" value="" id="loginform-touchkey-value" />
{% if buypid %}
<input type="hidden" name="buypid" value="{{ buypid }}" />
{% endif %}
</form>
<a class="btn btn-secondary" href="/">Cancel</a>
<script src="/static/js/touchkey.js"></script>
<script>
initTouchkey(false, 'touchkey-svg', 'loginform', 'loginform-touchkey-value');
</script>
{{ super() }}
{% endblock %}
{% block eanwebsocket %}
document.location = "/?ean=" + e.data;
{% endblock %}