Simon Pirkelmann
0b0d7f9a93
use MQTT to get last invalid token instead of reading it from the logfile
81 lines
1.9 KiB
HTML
81 lines
1.9 KiB
HTML
<!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: {{ token['timestamp']}}
|
|
|
|
<div>
|
|
<p>
|
|
RaumnutzerIn registrieren:
|
|
</p>
|
|
<form method="POST">
|
|
<table>
|
|
{{ form.csrf_token }}
|
|
<tr>
|
|
<td>{{ form.name.label }}</td>
|
|
<td>{{ form.name(size=20) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ form.email.label }}</td>
|
|
<td>{{ form.email(size=20) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ form.organization.label }}</td>
|
|
<td>{{ form.organization(size=20) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ form.limit_validity.label }}</td>
|
|
<td> {{ form.limit_validity() }}</td>
|
|
</tr>
|
|
|
|
<tr id="valid_thru_row" style="display: none">
|
|
<td>{{ form.valid_thru.label }} </td>
|
|
<td>{{ form.valid_thru() }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ form.dsgvo.label }} </td>
|
|
<td> {{ form.dsgvo() }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<input type="submit" value="Abschicken">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</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 () {
|
|
if (this.checked) {
|
|
$("#valid_thru_row").css("display", "table-row")
|
|
}
|
|
else {
|
|
$("#valid_thru_row").css("display", "none")
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</html> |