Commit 423b416f authored by impfundev's avatar impfundev

fix: initial book in update book loan

parent 7f25fe9d
......@@ -22,7 +22,12 @@
<label for="book">Book</label>
<select id="book" name="book" class="form-select">
{% for book in books %}
<option value="{{ book.id }}">{{ book.title }}</option>
<option
value="{{ book.id }}"
selected="{% if initial_book_id == book.id %}true{% else %}false{% endif %}"
>
{{ book.title }}
</option>
{% endfor %}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment