2022-10-22 16:14:19 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<h1>Signup</h1>
|
2022-10-22 16:14:19 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
{# Show a username/password signup form #}
|
|
|
|
<form method="post" action="/signup" id="signupform" enctype="multipart/form-data" accept-charset="UTF-8">
|
|
|
|
<label class="form-label" for="signup-username">Username:</label>
|
|
|
|
<input class="form-control" id="signup-username" type="text" name="username" required="required" class="osk-target"/><br/>
|
2022-10-22 16:14:19 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<label class="form-label" for="signup-password">Choose a password:</label>
|
|
|
|
<input class="form-control" id="signup-password" type="password" name="password" required="required" class="osk-target"/><br/>
|
2024-11-27 23:43:23 +01:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<label class="form-label" for="signup-password2">Repeat password:</label>
|
|
|
|
<input class="form-control" id="signup-password2" type="password" name="password2" required="required" class="osk-target"/><br/>
|
2022-10-22 16:14:19 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<label class="form-label" for="signup-touchkey">Draw a touchkey (touchscreen login pattern)</label>
|
|
|
|
<br/>
|
|
|
|
<svg id="touchkey-svg" width="400" height="400"></svg>
|
|
|
|
<br/>
|
|
|
|
<input id="signup-touchkey" type="hidden" name="touchkey" value="" />
|
2022-10-22 16:14:19 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<input class="btn btn-primary" type="submit" value="Create account">
|
|
|
|
<a class="btn btn-secondary" href="/">Cancel</a>
|
|
|
|
</form>
|
2022-10-22 16:14:19 +02:00
|
|
|
|
2024-12-07 15:50:37 +01:00
|
|
|
<script src="/static/js/touchkey.js" ></script>
|
|
|
|
<script>
|
|
|
|
initTouchkey(true, 'touchkey-svg', null, 'signup-touchkey');
|
|
|
|
</script>
|
|
|
|
{{ super() }}
|
2022-10-22 16:14:19 +02:00
|
|
|
|
|
|
|
{% endblock %}
|
2024-11-27 23:43:23 +01:00
|
|
|
|
|
|
|
{% block eanwebsocket %}
|
2024-12-07 15:50:37 +01:00
|
|
|
document.location = "/?ean=" + e.data;
|
2024-11-27 23:43:23 +01:00
|
|
|
{% endblock %}
|