This commit is contained in:
philipp 2023-10-23 22:00:04 +02:00
commit f4d0a88575
2 changed files with 27 additions and 18 deletions

View File

@ -14,13 +14,22 @@
{{ macros::header(loggedin_user=loggedin_user) }} {{ macros::header(loggedin_user=loggedin_user) }}
{% endif %} {% endif %}
{% if show_kiosk_header %} {% if show_kiosk_header %}
<a href="/log">Ausfahrt eintragen</a> <header class="bg-primary-900 text-white flex justify-between px-4 py-3 w-full z-10 ">
<a href="/log/show">Logbuch</a> <div>
<a href="/stat">Statistik</a> <a href="/">
<a href="/boatdamage">Bootsschaden</a>
</a>
</div>
<div>
<a href="/log" class="px-2">Ausfahrt eintragen</a>
<a href="/log/show" class="px-2">Logbuch</a>
<a href="/stat" class="px-2">Statistik</a>
<a href="/boatdamage" class="px-2">Bootsschaden</a>
</div>
</header>
{% endif %} {% endif %}
<div class="flex min-h-screen {%if not loggedin_user %} items-center {% else %} items-start {% endif %} justify-center px-4 py-12 sm:px-6 lg:px-8"> {% block content %}{% endblock content %} <div class="flex min-h-screen {%if not loggedin_user and not show_kiosk_header %} items-center {% else %} items-start {% endif %} justify-center px-4 py-12 sm:px-6 lg:px-8"> {% block content %}{% endblock content %}
</div> </div>
{% if loggedin_user %} {% if loggedin_user %}

View File

@ -185,7 +185,7 @@
{% endif %} {% endif %}
{% if allowed_to_close and state == "on_water" %} {% if allowed_to_close and state == "on_water" %}
<a href="/log/{{ log.id }}/delete" onclick="return confirm('Willst du diesen Eintrag wirklich löschen? Die Daten gehen verloren :O');">LÖSCHEN</a> <a href="/log/{{ log.id }}/delete" class="btn btn-alert w-full absolute bottom-0 left-0" style="border-radius: 0;" onclick="return confirm('Willst du diesen Eintrag wirklich löschen? Die Daten gehen verloren');">Löschen</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>