split out old books into book and books.html, all *.html now using extends and {% block %} in jinja2. So navbar is now present in all URLs

This commit is contained in:
2020-11-14 12:09:35 +11:00
parent 4b84ba8aa7
commit 79a41b4f0e
5 changed files with 54 additions and 80 deletions

View File

@@ -4,13 +4,11 @@
<h3>Authors</h3>
<table id="book_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<thead>
<tr class="thead-light"><th>Surname</th><th>Firstname(s)</th><th>Action</th></tr>
<tr class="thead-light"><th>Surname</th><th>Firstname(s)</th></tr>
</thead>
<tbody>
{% for author in authors %}
<tr><td>{{author.surname}}</td><td>{{author.firstnames}}</td><td>
icons for: E, D
</td></tr>
<tr><td><a href="{{url_for('author', id=author.id )}}">{{author.surname}}</a></td><td>{{author.firstnames}}</td></tr>
{% endfor %}
</tbody>
</table>