DoorAdmin/imaginaerraum_door_admin/templates/index.html
Simon Pirkelmann 38164aca4b started refactoring:
- use blueprint
- read configuration from file (default_app_config.py) and additional file specified by APPLICATION_SETTINGS environment variable
2022-01-25 21:42:35 +01:00

39 lines
942 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('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 %}