2018-03-18 16:01:06 +01:00
|
|
|
{% from "formhelpers.html" import render_field_label, render_field %}
|
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>
|
2018-03-18 16:01:06 +01:00
|
|
|
{{ state_img }}
|
2018-03-13 18:26:12 +01:00
|
|
|
<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) }}
|
2018-03-18 16:01:06 +01:00
|
|
|
<hr/>
|
|
|
|
{{ render_field(authentication_form.open) }}
|
|
|
|
{{ render_field(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 }}
|
2018-03-13 18:26:12 +01:00
|
|
|
</body>
|
|
|
|
</html>
|