2018-03-18 17:22:08 +01:00
|
|
|
{% extends "layout.html" %}
|
2018-03-13 18:26:12 +01:00
|
|
|
|
2018-06-03 16:42:10 +02:00
|
|
|
{%- block metas %}
|
|
|
|
{{super()}}
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2018-09-08 23:24:45 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2018-06-03 16:42:10 +02:00
|
|
|
{%- endblock metas %}
|
|
|
|
|
2018-03-18 17:22:08 +01:00
|
|
|
{% block content %}
|
2018-09-17 19:54:33 +02:00
|
|
|
<h1 class="text-center">{{ banner }}</h1>
|
2018-03-18 17:22:08 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 text-center">
|
|
|
|
<img src="{{ led }}">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
2018-09-08 02:28:28 +02:00
|
|
|
<form action="" method="post" class="form" role="form">
|
|
|
|
{{ authentication_form.csrf_token }}
|
|
|
|
<div class="form-group ">
|
|
|
|
<label class="control-label" for="username">Username</label>
|
|
|
|
<input class="form-control" id="username" name="username" type="text" value="">
|
|
|
|
</div>
|
2018-09-18 01:02:44 +02:00
|
|
|
<div class="form-group required">
|
2018-09-08 02:28:28 +02:00
|
|
|
<label class="control-label" for="password">Password</label>
|
|
|
|
<input class="form-control" id="password" name="password" required type="password" value="">
|
|
|
|
</div>
|
2018-09-18 01:02:44 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="method">Authentication method</label>
|
|
|
|
<select name="method" id="method" class="form-control">
|
2018-10-08 01:12:32 +02:00
|
|
|
{% for backend in auth_backends %}
|
|
|
|
<option>{{ backend }}</option>
|
|
|
|
{% endfor %}
|
2018-09-18 01:02:44 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
2018-09-08 02:28:28 +02:00
|
|
|
<input class="btn btn-success btn-lg btn-block" id="open" name="open" type="submit" value="Open">
|
|
|
|
<input class="btn btn-warning btn-lg btn-block" id="present" name="present" type="submit" value="Present">
|
|
|
|
<input class="btn btn-danger btn-lg btn-block" id="close" name="close" type="submit" value="Close">
|
|
|
|
</form>
|
2018-03-18 17:22:08 +01:00
|
|
|
{% if response %}
|
2018-03-18 16:01:06 +01:00
|
|
|
<hr/>
|
2018-10-08 01:12:32 +02:00
|
|
|
<h1>{{ response }}</h1>
|
2018-03-18 17:22:08 +01:00
|
|
|
{% endif %}
|
|
|
|
<hr/>
|
|
|
|
Die Kitchen ist: {{ state_text }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|