Moved roll some context to bus object

Added first_name to traveller ordering
This commit is contained in:
John Mullins
2023-10-11 13:22:02 +11:00
parent ff8b4c21fc
commit d4a6113e31
4 changed files with 7 additions and 7 deletions
@@ -18,15 +18,15 @@
</style>
{% for route in routes %}
<h1 style="font-size: 2.5em">{{ route.route_name }}</h1>
<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>
Seating Capacity: {{ route.seating_capacity }}
Seating Capacity: {{ route.bus.seating_capacity }}
</p>
{% for stop in route.route_stops %}
{% if stop.page_break %}
<div style="page-break-before: always"></div>
<h1 style="font-size: 2.5em">{{ route.route_name }}</h1>
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
{% endif %}
<table class="stopHeader">
<tr>
@@ -79,7 +79,7 @@
<h1 style="font-size: 2.5em">{{ route.route_name }} (Shuttle)</h1>
<p style="text-align:right; font-size:12px">
Total Travellers: {{ route.shuttle_count }}<br>
Seating Capacity: {{ route.seating_capacity }}
Seating Capacity: {{ route.bus.seating_capacity }}
</p>
<table class="traveller">
{% for traveller in route.shuttle_travellers %}