Hide routes if marked as hidden

This commit is contained in:
John Mullins
2023-11-02 12:02:47 +11:00
parent 0bb23f007a
commit e56fdc8d3c
@@ -18,11 +18,13 @@
</style>
{% 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.bus.traveller_count }}<br>
Seating Capacity: {{ route.bus.seating_capacity }}
</p>
{% if route.route_stops %}
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
<p style="text-align:right; font-size:12px">
Total Travellers: {{ route.bus.traveller_count }}<br>
Seating Capacity: {{ route.bus.seating_capacity }}
</p>
{% endif %}
{% for stop in route.route_stops %}
{% if stop.page_break %}
<div style="page-break-before: always"></div>
@@ -74,7 +76,10 @@
</table>
<br>
{% endfor %}
<p style="page-break-after: always">
{% if route.route_stops %}
<p style="page-break-after: always">
{% endif %}
{% 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">