first pass for series data, can save, and shows associated books... Does not deal with series inside series

This commit is contained in:
2020-11-23 18:50:53 +11:00
parent 7bd3ff4c26
commit e7c8e645ae
6 changed files with 184 additions and 3 deletions

16
templates/seriess.html Normal file
View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block main_content %}
<h3>Series</h3>
<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>Number of Books</th><th>Rating (average)</th><th>Notes</th></tr>
</thead>
<tbody>
{% for series in seriess %}
<tr><td><a href="{{url_for('series', id=series.id )}}">{{series.title}}</a></td><td>{{series.num_books}}</td><td>{{series.calcd_rating}}</td>
<td>{{series.note}}</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock main_content %}