DoorAdmin/templates/register.html

51 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tokens registrieren</title>
<script src="../static/jquery-3.6.0.js"></script>
</head>
<body>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% if token is not none %}
Letzter unregistrierter Token: {{ token['token'] }} <br>
Gelesen am {{ token['date'] }} um {{ token['time'] }}
<div>
<p>
RaumnutzerIn registrieren:
</p>
<form method="POST">
<p>{{ form.csrf_token }}
<p>{{ form.name.label }} {{ form.name(size=20) }}</p>
<p>{{ form.email.label }} {{ form.email(size=20) }}</p>
<p>{{ form.limit_validity.label }} {{ form.limit_validity() }}</p>
<div id="valid_thru_dialog" {% if not form.limit_validity.data %}hidden{% endif %}>
<p>{{ form.valid_thru.label }} {{ form.valid_thru() }}</p>
</div>
<p>{{ form.dsgvo.label }} {{ form.dsgvo() }}</p>
<input type="submit" value="Abschicken">
</form>
</div>
{% else %}
Keine unregistrierten Tokens in Logfile gefunden. Bitte Token scannen und die Seite neu laden.
{% endif %}
</body>
<script>
$(function () {
$("#limit_validity").on("click", function () {
$("#valid_thru_dialog").toggle(this.checked);
});
});
</script>
</html>