luniebox/application/templates/success.html
2022-02-06 10:19:03 +01:00

60 lines
1.3 KiB
HTML

{% extends "template.html" %}
{% block content %}
{% if success['rfid_write']: %}
<div class="my-3 alert alert-success">
Write card value: {{ success['rfid_write'] }}
</div>
{% endif %}
{% if success['rfid_read']: %}
<div class="my-3 alert alert-success">
Read card value: {{ success['rfid_read'] }}
</div>
{% endif %}
{% if success['rfid_play']: %}
<div class="my-3 alert alert-success">
Start playing from card.
</div>
{% endif %}
{% if success['play']: %}
<div class="my-3 alert alert-success">
Start playing {{ success['play'] }}.
</div>
{% endif %}
{% if success['restart_spotifyd']: %}
<div class="my-3 alert alert-secondary">
Restartet spotifyd service.
</div>
{% endif %}
{% if success['restart_mpd']: %}
<div class="my-3 alert alert-secondary">
Restartet mpd service.
</div>
{% endif %}
{% if success['start_daemon']: %}
<div class="my-3 alert alert-success">
Started luniebox-daemon service.
</div>
{% endif %}
{% if success['stop_daemon']: %}
<div class="my-3 alert alert-warning">
Stopped luniebox-daemon service.
</div>
{% endif %}
{% if success['restart_luniebox']: %}
<div class="my-3 alert alert-secondary">
Restartet luniebox-app service.
</div>
{% endif %}
<a class="btn btn-primary" href="{{ url_for('pages.index') }}">Go back to status page</a>
{% endblock %}