DoorAdmin/imaginaerraum_door_admin/templates/index.html

39 lines
924 B
HTML

{% 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('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('close_door') }}" class="btn btn-danger" role="button">Tür schließen</a>
</div>
<div class="col-5"></div>
</div>
{% endif %}
{% endblock %}