New reports
Added per term fare paid to traveller model Fixed parent in emergency contacts report
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user