Files
bus-manager/busManager/coord/templates/reports/bus_roll.html
T
John Mullins 0c8de0285a Changed bus roll to be a pdf view. Small changes needed to be able to email to companies.
Dropdown selection in admin > buses > Email Bus Roll To Company
Will email bus roll only to the company the route is a member of. Will show all to the admin in a pdf file.

Recipients are currently hardcoded for testing purposes.
2023-08-29 12:40:34 +10:00

69 lines
2.2 KiB
HTML

<style>
table.stopHeader th {
text-align: left;
min-width: 150px;
width: 100%;
}
table.traveller td {
border: 2px solid #000;
}
hr {
border: 3px solid;
}
</style>
{% for route in routes %}
<h1 style="font-size: 2.5em">{{ route.bus.route_name }}</h1>
{% for stop in route.stops %}
<hr style="border: 5px">
<table class="stopHeader">
<tr>
<th style="width: 100%">Stop Number #{{ stop.stop_num }}</th>
<th style="width: 20%">Pickup Time</th>
<th style="width: 25%">Drop-off Time</th>
</tr>
<tr>
<td>{{ stop.name }}</td>
<td>{{ stop.am }}</td>
<td>{{ stop.pm }}</td>
</tr>
</table>
<table class="traveller">
<tr>
<th style="width: 100%; text-align: left">Student</th>
<th style="width: 10%">Fare</th>
<th style="width: 8%">Mon AM</th>
<th style="width: 8%">Mon PM</th>
<th style="width: 8%">Tue AM</th>
<th style="width: 8%">Tue PM</th>
<th style="width: 8%">Wed AM</th>
<th style="width: 8%">Wed PM</th>
<th style="width: 8%">Thu AM</th>
<th style="width: 8%">Thu PM</th>
<th style="width: 8%">Fri AM</th>
<th style="width: 8%">Fri PM</th>
</tr>
{% for traveller in stop.travellers %}
<tr>
<td style="padding-top: 3px; padding-left: 2px; text-align: left">{{ traveller.display }}</td>
<td style="padding-top: 3px; text-align: center"><b>{{ traveller.isFared }}</b></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
{% endfor %}
</table>
<br>
{% endfor %}
<p style="page-break-after: always">
{% endfor %}