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
@@ -1,13 +1,34 @@
<style>
td {
text-align: left;
padding-inline: 5px;
background-color: #ffffff;
border: 1px solid #dddfe1;
}
</style>
<h1>Bus Numbers</h1>
<table>
<tr>
<th>Route Name</th>
<th>Number of Students</th>
<th>Driver</th>
<th>Route Travellers</th>
<th>Shuttle</th>
<th>Shuttle Travellers</th>
<th>Seating Max</th>
</tr>
{% for bus in buses %}
<tr>
<td>{{ bus.route_name }}</td>
<td>{{ bus.num_travellers }}</td>
<td>{{ bus.drivers }}</td>
<td>{{ bus.route_travellers }}</td>
<td>{{ bus.shuttle }}</td>
<td>{{ bus.shuttle_travellers }}</td>
{% if bus.over_capacity %}
<td style="color:red"><b>{{ bus.seating_capacity }}</b></td>
{% else %}
<td>{{ bus.seating_capacity }}</td>
{% endif %}
</tr>
{% endfor %}
</table>