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:
|
|
|
|
{% if door_state == 'closed' %}
|
|
|
|
<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">
|
|
|
|
<a href="{{ url_for('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">
|
|
|
|
<a href="{{ url_for('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-03-14 16:08:46 +00:00
|
|
|
{% endblock %}
|