add delete trip button in edit window; Fixes #449
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
philipp 2024-06-10 19:07:05 +02:00
parent f7aed68423
commit 957c474389

View File

@ -242,7 +242,7 @@
</div> </div>
</div> </div>
{% endmacro show_old %} {% endmacro show_old %}
{% macro home(log) %} {% macro home(log, allowed_to_close=false) %}
<form class="grid grid-cols-1 gap-3" <form class="grid grid-cols-1 gap-3"
action="/log/{{ log.id }}" action="/log/{{ log.id }}"
method="post"> method="post">
@ -279,4 +279,8 @@
</details> </details>
<input class="btn btn-primary" type="submit" value="Ausfahrt beenden" /> <input class="btn btn-primary" type="submit" value="Ausfahrt beenden" />
</form> </form>
<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>
{% endmacro home %} {% endmacro home %}