Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<h1>Bus Numbers</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Route Name</th>
|
||||
<th>Number of Students</th>
|
||||
</tr>
|
||||
{% for bus in buses %}
|
||||
<tr>
|
||||
<td>{{ bus.route_name }}</td>
|
||||
<td>{{ bus.num_travellers }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
@@ -0,0 +1,80 @@
|
||||
<style>
|
||||
|
||||
table.stopHeader th {
|
||||
text-align: left;
|
||||
min-width: 150px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.traveller th {
|
||||
text-align: left;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
|
||||
|
||||
table.traveller td {
|
||||
table-layout: fixed;
|
||||
border-bottom: 2px solid #000;
|
||||
border-right-style: dashed;
|
||||
width: 100%;
|
||||
min-width: 30px;
|
||||
}
|
||||
|
||||
|
||||
hr {
|
||||
border: 2px solid;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% for route in routes %}
|
||||
<h1>{{ route.route_name }}</h1>
|
||||
{% for stop in route.stops %}
|
||||
<hr>
|
||||
<table class="stopHeader">
|
||||
<tr>
|
||||
<th>Stop Number #{{ stop.stop_num }}</th>
|
||||
<th>Pickup Time</th>
|
||||
<th>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>Student</th>
|
||||
<th>Fare</th>
|
||||
<th>Mon AM</th>
|
||||
<th>Mon PM</th>
|
||||
<th>Tue AM</th>
|
||||
<th>Tue PM</th>
|
||||
<th>Wed AM</th>
|
||||
<th>Wed PM</th>
|
||||
<th>Thu AM</th>
|
||||
<th>Thu PM</th>
|
||||
<th>Fri AM</th>
|
||||
<th>Fri PM</th>
|
||||
</tr>
|
||||
{% for traveller in stop.travellers %}
|
||||
<tr>
|
||||
<td>{{ traveller.display }}</td>
|
||||
<td><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 %}
|
||||
@@ -0,0 +1,33 @@
|
||||
{% for route in routes %}
|
||||
<h1>{{ route.route_name }}</h1>
|
||||
{% for stop in route.stops %}
|
||||
<tr>
|
||||
<th>Stop Number</th>
|
||||
<th>Address</th>
|
||||
<th>Pickup Time</th>
|
||||
<th>Drop-off Time</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ stop.stop_num }}</th>
|
||||
<th>{{ stop.name }}</th>
|
||||
<th>{{ stop.am }}</th>
|
||||
<th>{{ stop.pm }}</th>
|
||||
</tr>
|
||||
{% for traveller in stop.travellers %}
|
||||
<tr>
|
||||
<th>Student</th>
|
||||
<th>Mon AM</th>
|
||||
<th>Mon PM</th>
|
||||
<th>Tue AM</th>
|
||||
<th>Tue PM</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ traveller.traveller }}</th>
|
||||
<th>{{ traveller.mon_am }}</th>
|
||||
<th>{{ traveller.mon_pm }}</th>
|
||||
<th>{{ traveller.tue_am }}</th>
|
||||
<th>{{ traveller.tue_pm }}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,50 @@
|
||||
<style>
|
||||
|
||||
table.stopHeader th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.traveller th {
|
||||
text-align: left;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
|
||||
|
||||
table.traveller td {
|
||||
table-layout: fixed;
|
||||
border-bottom: 2px solid #000;
|
||||
border-right-style: dashed;
|
||||
}
|
||||
|
||||
|
||||
hr {
|
||||
border: 2px solid;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% for route in routes %}
|
||||
<h1>{{ route.bus }}</h1>
|
||||
<hr>
|
||||
<table class="traveller">
|
||||
<tr>
|
||||
<th>Student</th>
|
||||
<th>Parent A</th>
|
||||
<th>Parent B</th>
|
||||
<th>Emergency Contact A</th>
|
||||
<th>Emergency Contact B</th>
|
||||
<th>Driver notes</th>
|
||||
</tr>
|
||||
{% for traveller in route.travellers %}
|
||||
<tr>
|
||||
<td>{{ traveller.traveller }} ({{ traveller.traveller.school.shortName }})</td>
|
||||
<td>{{ traveller.parent_a }}</td>
|
||||
<td>{{ traveller.parent_b }}</td>
|
||||
<td>{{ traveller.contact_a }}</td>
|
||||
<td>{{ traveller.contact_b }}</td>
|
||||
<td>{{ traveller.note }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<br>
|
||||
<p style="page-break-after: always">
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user