2018-03-18 17:22:08 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import "bootstrap/wtf.html" as wtf %}
|
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">
|
|
|
|
{%- endblock metas %}
|
|
|
|
|
2018-03-18 17:22:08 +01:00
|
|
|
{% block content %}
|
|
|
|
<h1 class="text-center">Binary Kitchen Doorlock</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 text-center">
|
|
|
|
<img src="{{ led }}">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
2018-09-02 04:11:15 +02:00
|
|
|
{{ wtf.quick_form(authentication_form, button_map={'open': 'success btn-lg btn-block', 'present': 'warning btn-lg btn-block', 'close': 'danger btn-lg btn-block'}) }}
|
2018-03-18 17:22:08 +01:00
|
|
|
{% if response %}
|
2018-03-18 16:01:06 +01:00
|
|
|
<hr/>
|
2018-03-18 17:22:08 +01:00
|
|
|
<h1>{{ response.to_html() }}</h1>
|
|
|
|
{% endif %}
|
|
|
|
<hr/>
|
|
|
|
Die Kitchen ist: {{ state_text }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|