Fixed unreserve state issue

This commit is contained in:
Maximilian Giller 2024-10-12 14:34:38 +02:00
parent d843dc3f72
commit b81f35115c

View file

@ -10,7 +10,7 @@
<form method="POST" action="/reservation/update"> <form method="POST" action="/reservation/update">
<input type="hidden" name="wishlist_id" value="{{ wishlist.config.id }}"> <input type="hidden" name="wishlist_id" value="{{ wishlist.config.id }}">
<input type="hidden" name="item_id" value="{{ item.id }}"> <input type="hidden" name="item_id" value="{{ item.id }}">
<input type="hidden" name="reserved" value="{{ 'false' if item.reserved else 'true' }}"> <input type="hidden" name="reserved" value="{{ 'false' if item.reservation else 'true' }}">
{% if item.reserved %} {% if item.reserved %}
<input type="text" name="name"> <input type="text" name="name">
<button type="submit" class="reserve-button">Unreserve</button> <button type="submit" class="reserve-button">Unreserve</button>