DoorAdmin/imaginaerraum_door_admin/templates/index.html

39 lines
942 B
HTML
Raw Permalink Normal View History

2021-03-14 16:08:46 +00:00
{% extends 'base.html' %}
{% block header %}
{% block title %}<h1>Space Zugangsverwaltung</h1>{% endblock %}
{% endblock %}
{% block content %}
<div class="row">
Zustand der Tür:
{% if door_state == 'close' %}
<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('door_app.open_door') }}" class="btn btn-success" role="button">Tür öffnen</a>
</div>
<div class="col-1"></div>
<div class="col-3">
<a href="{{ url_for('door_app.close_door') }}" class="btn btn-danger" role="button">Tür schließen</a>
</div>
<div class="col-5"></div>
</div>
{% endif %}
{% endblock %}