now have a Person class & associated CReate/Update/Delete functions, and menu in base.html

This commit is contained in:
2021-01-12 21:51:33 +11:00
parent 2c170e2a9c
commit a3a95f636e
5 changed files with 168 additions and 1 deletions

16
templates/persons.html Normal file
View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block main_content %}
<h3>Show All People</h3>
<table id="person_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<thead>
<tr class="thead-light"><th>Tag</th><th>Firstname(s)</th><th>Surname</th></tr>
</thead>
<tbody>
{% for person in persons %}
<tr><td><a href="{{url_for('person', id=person.id )}}">{{person.tag}}</td><td>{{person.firstname}}</td>
<td>{{person.surname}}</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock main_content %}