Hide routes if marked as hidden
This commit is contained in:
@@ -18,11 +18,13 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% for route in routes %}
|
{% for route in routes %}
|
||||||
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
|
{% if route.route_stops %}
|
||||||
<p style="text-align:right; font-size:12px">
|
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
|
||||||
Total Travellers: {{ route.bus.traveller_count }}<br>
|
<p style="text-align:right; font-size:12px">
|
||||||
Seating Capacity: {{ route.bus.seating_capacity }}
|
Total Travellers: {{ route.bus.traveller_count }}<br>
|
||||||
</p>
|
Seating Capacity: {{ route.bus.seating_capacity }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% for stop in route.route_stops %}
|
{% for stop in route.route_stops %}
|
||||||
{% if stop.page_break %}
|
{% if stop.page_break %}
|
||||||
<div style="page-break-before: always"></div>
|
<div style="page-break-before: always"></div>
|
||||||
@@ -74,7 +76,10 @@
|
|||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
{% endfor %}
|
{% 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 %}
|
{% for shuttle_route in route.shuttle_routes %}
|
||||||
<h1 style="font-size: 2.5em">{{ shuttle_route.shuttle }}</h1>
|
<h1 style="font-size: 2.5em">{{ shuttle_route.shuttle }}</h1>
|
||||||
<p style="text-align:right; font-size:12px">
|
<p style="text-align:right; font-size:12px">
|
||||||
|
|||||||
Reference in New Issue
Block a user