2018-03-18 15:57:13 +01:00
|
|
|
{% from "formhelpers.html" import render_field_label %}
|
2018-03-13 18:26:12 +01:00
|
|
|
<!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') }}">
|
2018-03-18 15:57:13 +01:00
|
|
|
{{ render_field_label(authentication_form.username) }}
|
|
|
|
{{ render_field_label(authentication_form.password) }}
|
|
|
|
{{ render_field_label(authentication_form.open) }}
|
|
|
|
{{ render_field_label(authentication_form.close) }}
|
2018-03-18 15:55:05 +01:00
|
|
|
{{ authentication_form.csrf_token }}
|
2018-03-13 18:26:12 +01:00
|
|
|
</form>
|
2018-03-18 15:55:05 +01:00
|
|
|
{% if response %}
|
|
|
|
<hr/>
|
|
|
|
<h1>{{ response.to_html() }}</h1>
|
|
|
|
{% endif %}
|
|
|
|
<hr/>
|
|
|
|
Die Kitchen ist: {{ state_text }}
|
|
|
|
{{ state_img }}
|
2018-03-13 18:26:12 +01:00
|
|
|
</body>
|
|
|
|
</html>
|