63 lines
1.6 KiB
HTML
63 lines
1.6 KiB
HTML
<style>
|
|
td {
|
|
text-align: left;
|
|
padding-inline: 5px;
|
|
background-color: #ffffff;
|
|
border: 1px solid #dddfe1;
|
|
}
|
|
</style>
|
|
|
|
<h1>Routes Overview</h1>
|
|
<table>
|
|
<tr>
|
|
<th>Route Name</th>
|
|
<th>Driver</th>
|
|
<th>Route Travellers</th>
|
|
<th>Shuttle</th>
|
|
<th>Shuttle Travellers</th>
|
|
<th>Seating Max</th>
|
|
</tr>
|
|
{% for route in routes %}
|
|
<tr>
|
|
<td>{{ route.bus.route_name }}</td>
|
|
<td>
|
|
{% for driver in route.drivers %}
|
|
{{ driver }}<br>
|
|
{% endfor %}
|
|
</td>
|
|
<td>{{ route.traveller_count }}</td>
|
|
<td>{{ route.shuttle_name }}</td>
|
|
<td>{{ route.shuttle_count }}</td>
|
|
{% if route.over_capacity %}
|
|
<td style="color:red"><b>{{ route.bus.seating_capacity }}</b></td>
|
|
{% else %}
|
|
<td>{{ route.bus.seating_capacity }}</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<p style="page-break-after: always">
|
|
|
|
{% for route in routes %}
|
|
<h1>{{ route.bus.company }} - {{ route.bus }}</h1>
|
|
{% for driver in route.drivers %}
|
|
<p><b>Driver:</b> {{ driver }} ({{ driver.phone_number }})</p>
|
|
{% endfor %}
|
|
<table>
|
|
<tr>
|
|
<th>Stop #</th>
|
|
<th>Address</th>
|
|
<th>AM Time</th>
|
|
<th>PM Time</th>
|
|
</tr>
|
|
{% for stop in route.stops %}
|
|
<tr>
|
|
<td>{{ stop.get_stop_number }}</td>
|
|
<td>{{ stop.address }}</td>
|
|
<td>{{ stop.am_time }}</td>
|
|
<td>{{ stop.pm_time }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<p style="page-break-after: always">
|
|
{% endfor %} |