Hide routes if marked as hidden
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user