2021-03-14 16:08:46 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
|
|
{% block title %}<h1>Space Zugangsverwaltung</h1>{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-04-08 18:55:27 +00:00
|
|
|
<div class="row">
|
|
|
|
Zustand der Tür:
|
2021-08-23 18:31:18 +00:00
|
|
|
{% if door_state == 'close' %}
|
2021-04-08 18:55:27 +00:00
|
|
|
<div style="color: red">
|
|
|
|
Abgeschlossen
|
|
|
|
</div>
|
|
|
|
{% elif door_state == 'open' %}
|
|
|
|
<div style="color: limegreen">
|
|
|
|
Geöffnet
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
Position Drehgeber: {{ encoder_position }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-3">
|
2022-01-25 20:42:35 +00:00
|
|
|
<a href="{{ url_for('door_app.open_door') }}" class="btn btn-success" role="button">Tür öffnen</a>
|
2021-03-07 22:19:44 +00:00
|
|
|
</div>
|
2021-04-08 18:55:27 +00:00
|
|
|
<div class="col-1"></div>
|
|
|
|
<div class="col-3">
|
2022-01-25 20:42:35 +00:00
|
|
|
<a href="{{ url_for('door_app.close_door') }}" class="btn btn-danger" role="button">Tür schließen</a>
|
2021-03-07 22:19:44 +00:00
|
|
|
</div>
|
2021-04-08 18:55:27 +00:00
|
|
|
<div class="col-5"></div>
|
|
|
|
</div>
|
2021-03-07 22:19:44 +00:00
|
|
|
{% endif %}
|
2021-04-08 18:55:27 +00:00
|
|
|
|
|
|
|
|
2021-08-23 18:31:18 +00:00
|
|
|
{% endblock %}
|