From e56fdc8d3c2466994ae56641194dece36df329e1 Mon Sep 17 00:00:00 2001 From: John Mullins Date: Thu, 2 Nov 2023 12:02:47 +1100 Subject: [PATCH] Hide routes if marked as hidden --- .../coord/templates/reports/bus_roll.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/busManager/coord/templates/reports/bus_roll.html b/busManager/coord/templates/reports/bus_roll.html index 5b5aefd..b5272dd 100644 --- a/busManager/coord/templates/reports/bus_roll.html +++ b/busManager/coord/templates/reports/bus_roll.html @@ -18,11 +18,13 @@ {% for route in routes %} -

{{ route.bus.route_name }}

-

- Total Travellers: {{ route.bus.traveller_count }}
- Seating Capacity: {{ route.bus.seating_capacity }} -

+ {% if route.route_stops %} +

{{ route.bus.route_name }}

+

+ Total Travellers: {{ route.bus.traveller_count }}
+ Seating Capacity: {{ route.bus.seating_capacity }} +

+ {% endif %} {% for stop in route.route_stops %} {% if stop.page_break %}
@@ -74,7 +76,10 @@
{% endfor %} -

+ {% if route.route_stops %} +

+ {% endif %} + {% for shuttle_route in route.shuttle_routes %}

{{ shuttle_route.shuttle }}