New reports

Added per term fare paid to traveller model
Fixed parent in emergency contacts report
This commit is contained in:
John Mullins
2023-08-28 11:41:31 +10:00
parent cc706420a5
commit f9981aadf0
7 changed files with 133 additions and 46 deletions
@@ -0,0 +1,26 @@
{% for route in routes %}
<h1>{{ route.bus.company }}</h1>
<table>
<tr>
<th>Route name</th>
<th>Driver</th>
</tr>
<tr>
<td>{{ route.bus.route_name }}</td>
<td>{{ route.drivers }}</td>
</tr>
</table>
<table>
<tr>
<th>Stop #</th>
<th>Address</th>
</tr>
{% for stop in route.stops %}
<tr>
<td>{{ stop.get_stop_number }}</td>
<td>{{ stop.address }}</td>
</tr>
{% endfor %}
</table>
<p style="page-break-after: always">
{% endfor %}