[TASK] style boat reservation
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user