[TASK] style boat reservation
Some checks are pending
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) Successful in 11m15s

This commit is contained in:
2024-04-02 20:59:09 +02:00
parent 1783527f39
commit 53afb4ee6f
6 changed files with 106 additions and 65 deletions

View File

@ -42,22 +42,37 @@
<div id="filter-result-js" class="search-result"></div>
{% for reservation in boatreservations %}
<div data-filterable="true"
data-filter="TODO: ADD FILTER"
data-filter="{{ reservation.user_applicant.name }} {{ reservation.boat.name }}"
class="w-full border-t bg-white dark:bg-primary-900 text-black dark:text-white p-3">
<div class="w-full">
Boot: {{ reservation.boat.name }}
<strong>Boot:</strong>
{{ reservation.boat.name }}
<br />
Datum: {{ reservation.start_date }}
{% if reservation.end_date != reservation.start_date %}- {{ reservation.end_date }}{% endif %}
<strong>Reservierung:</strong>
{{ reservation.user_applicant.name }}
<br />
Uhrzeit: {{ reservation.time_desc }}
<strong>Datum:</strong>
{{ reservation.start_date }}
{% if reservation.end_date != reservation.start_date %}
-
{{ reservation.end_date }}
{% endif %}
<br />
Zweck: {{ reservation.usage }}
<strong>Uhrzeit:</strong>
{{ reservation.time_desc }}
<br />
Reserviert von {{ reservation.user_applicant.name }}
<strong>Zweck:</strong>
{{ reservation.usage }}
{% if loggedin_user %}
{% if loggedin_user.id == reservation.user_applicant.id or "admin" in loggedin_user.roles %}
<a href="/boatreservation/{{ reservation.id }}/delete">RESERVIERUNG LÖSCHEN</a>
<div class="mt-3 text-right">
<a href="/boatreservation/{{ reservation.id }}/delete"
class="w-28 btn btn-alert"
onclick="return confirm('Willst du diese Reservierung wirklich löschen?');">
{% include "includes/delete-icon" %}
Löschen
</a>
</div>
{% endif %}
{% endif %}
</div>