mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-05 00:23:55 +01:00
56 lines
1.2 KiB
HTML
56 lines
1.2 KiB
HTML
{% from "formhelpers.html" import render_field %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ title }}</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
</head>
|
|
|
|
<body>
|
|
<style>
|
|
* {
|
|
font: normal 30px Arial,sans-serif;
|
|
}
|
|
body {
|
|
background-color: #037;
|
|
color: white;
|
|
background-image: url('static/logo.svg');
|
|
background-repeat: repeat;
|
|
background-size: 100%;
|
|
background-position: -0px -0px;
|
|
}
|
|
form {
|
|
position: relative;
|
|
display: block;
|
|
width: auto;
|
|
text-align: center;
|
|
}
|
|
input {
|
|
position: relative;
|
|
display: block;
|
|
width: auto;
|
|
width: 100%;
|
|
}
|
|
button {
|
|
width: 100%;
|
|
margin-top: 40px;
|
|
}
|
|
</style>
|
|
<form name="login" method="POST" action="{{ url_for('home') }}">
|
|
{{ render_field(authentication_form.username) }}
|
|
{{ render_field(authentication_form.password) }}
|
|
{{ render_field(authentication_form.open) }}
|
|
{{ render_field(authentication_form.close) }}
|
|
{{ authentication_form.csrf_token }}
|
|
</form>
|
|
{% if response %}
|
|
<hr/>
|
|
<h1>{{ response.to_html() }}</h1>
|
|
{% endif %}
|
|
<hr/>
|
|
Die Kitchen ist: {{ state_text }}
|
|
{{ state_img }}
|
|
</body>
|
|
</html>
|