... | ... |
@@ -99,7 +99,7 @@ |
99 | 99 |
</div> |
100 | 100 |
</div> |
101 | 101 |
<div class="col u-text-right"> |
102 |
- {% if reservation.approved != '0' %}<div><a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ reservation.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--sm m-0">Bearbeiten</a></div>{% endif %} |
|
102 |
+ {% if reservation.approved != '0' and not reservation.checked_in %}<div><a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ reservation.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--sm m-0">Bearbeiten</a></div>{% endif %} |
|
103 | 103 |
</div> |
104 | 104 |
</li> |
105 | 105 |
{% endfor %} |
... | ... |
@@ -114,13 +114,13 @@ |
114 | 114 |
</div> |
115 | 115 |
|
116 | 116 |
<div class="col u-text-right u-text-nowrap action"> |
117 |
- {% if booking.approved != '0' %} |
|
118 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--sm btn-info m-0">Ändern</a> |
|
119 |
- {% if not booking.checked_in %} |
|
117 |
+ {% if not booking.checked_in %} |
|
118 |
+ {% if booking.approved != '0' %} |
|
119 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--sm btn-info m-0">Ändern</a> |
|
120 | 120 |
<a hx-get="/_ajax/vr_wa/v1/slot?do=checkin&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--sm btn-success m-0">Check-in</a> |
121 | 121 |
{% endif %} |
122 |
- {% endif %} |
|
123 | 122 |
<a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" hx-confirm="Sind Sie sicher, dass Sie diese Reservierung löschen möchten?" href="javascript:;" class="btn btn--sm btn-danger m-0">Löschen</a> |
123 |
+ {% endif %} |
|
124 | 124 |
</div> |
125 | 125 |
</div> |
126 | 126 |
{% endfor %} |