Moved shuttles to be paged per stop

Added custom name to shuttle roll
This commit is contained in:
John Mullins
2023-10-11 14:55:55 +11:00
parent d4a6113e31
commit 3cfc4b545f
2 changed files with 10 additions and 13 deletions
@@ -20,7 +20,7 @@
{% for route in routes %}
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
<p style="text-align:right; font-size:12px">
Total Travellers: {{ route.traveller_count }}<br>
Total Travellers: {{ route.bus.traveller_count }}<br>
Seating Capacity: {{ route.bus.seating_capacity }}
</p>
{% for stop in route.route_stops %}
@@ -75,19 +75,18 @@
<br>
{% endfor %}
<p style="page-break-after: always">
{% if route.shuttle_count > 0 %}
<h1 style="font-size: 2.5em">{{ route.route_name }} (Shuttle)</h1>
{% for shuttle_route in route.shuttle_routes %}
<h1 style="font-size: 2.5em">{{ shuttle_route.shuttle }}</h1>
<p style="text-align:right; font-size:12px">
Total Travellers: {{ route.shuttle_count }}<br>
Seating Capacity: {{ route.bus.seating_capacity }}
Total Travellers: {{ shuttle_route.shuttle.traveller_count }}
</p>
<table class="traveller">
{% for traveller in route.shuttle_travellers %}
{% for traveller in shuttle_route.shuttle_travellers %}
<tr>
<td style="padding-top: 3px; padding-left: 2px; text-align: left">{{ traveller.display }}</td>
</tr>
{% endfor %}
</table>
<p style="page-break-after: always">
{% endif %}
{% endfor %}
{% endfor %}