first commit for removing books from a loan itself, works and the scaffold is there for adding new books, code to be written
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
{% block main_content %}
|
||||
|
||||
{% if not InDBox %}
|
||||
<h3>All Books</h1>
|
||||
{% endif %}
|
||||
<table id="book_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
||||
<thead>
|
||||
<tr class="thead-light"><th>Title</th><th>Author(s)</th><th>Publisher</th><th>Condition</th><th>Owned</th><th>Covertype</th></tr>
|
||||
<tr class="thead-light"><th>Title</th><th>Author(s)</th>
|
||||
{% if not InDBox %}
|
||||
<th>Publisher</th><th>Condition</th><th>Owned</th> <th>Covertype</th></tr>
|
||||
{% else %}
|
||||
<th>Covertype</th><th>Add?</th></tr>
|
||||
{% endif %}
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for book in books %}
|
||||
@@ -19,6 +26,7 @@
|
||||
{{ auth['surname'] }}, {{auth['firstnames']}}
|
||||
{% endfor %}
|
||||
</td>
|
||||
{% if not InDBox %}
|
||||
<td>{{ GetPublisherById(book.publisher)}}</td>
|
||||
<td align="center">
|
||||
{% set cond = GetConditionById(book.condition) %}
|
||||
@@ -31,7 +39,11 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ GetOwnedById(book.owned)}}</td>
|
||||
{% endif %}
|
||||
<td>{{ GetCovertypeById(book.covertype) }}</td>
|
||||
{% if InDBox %}
|
||||
<td> <input type="checkbox"></td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user