TODO-6 (add books to loan) is now complete, so loans are now fully functional... the whole pybook is now at least functional, more features/validation to come :)

This commit is contained in:
2021-01-04 22:28:35 +11:00
parent 6ff3d13713
commit 336ae4b67f
6 changed files with 60 additions and 10 deletions

View File

@@ -3,8 +3,11 @@
{% if not InDBox %}
<h3>All Books</h1>
{% set tab_id = 'book_table' %}
{% else %}
{% set tab_id = 'addsel_table' %}
{% endif %}
<table id="book_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<table id="{{tab_id}}" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<thead>
<tr class="thead-light"><th>Title</th><th>Author(s)</th>
{% if not InDBox %}
@@ -42,7 +45,7 @@
{% endif %}
<td>{{ GetCovertypeById(book.covertype) }}</td>
{% if InDBox %}
<td> <input type="checkbox"></td>
<td><input name="addsel-{{book.id}}" type="checkbox" onClick="ActivateBFLAddSelButton()"></td>
{% endif %}
</tr>
{% endfor %}