Added fields to changelist view. Added hyperlinks and mailto links
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<style>
|
||||
@page {
|
||||
size: letter landscape;
|
||||
margin: 0.5cm;
|
||||
}
|
||||
|
||||
table.stopHeader th {
|
||||
text-align: left;
|
||||
@@ -11,32 +15,29 @@
|
||||
|
||||
|
||||
table.traveller td {
|
||||
table-layout: fixed;
|
||||
border-bottom: 2px solid #000;
|
||||
border-right-style: dashed;
|
||||
padding-top: 3px;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
|
||||
hr {
|
||||
border: 2px solid;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% for route in routes %}
|
||||
<h1>{{ route.bus }}</h1>
|
||||
<hr>
|
||||
<h1 style="font-size: 2.5em">{{ route.bus.company }} - {{ route.bus }}</h1>
|
||||
{% for driver in route.drivers %}
|
||||
<p><b>Driver:</b> {{ driver }} ({{ driver.phone_number }})</p>
|
||||
{% endfor %}
|
||||
<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>
|
||||
<th style="width: 25%">Student</th>
|
||||
<th style="width: 25%">Parent A</th>
|
||||
<th style="width: 25%">Parent B</th>
|
||||
<th style="width: 25%">Emergency Contact A</th>
|
||||
<th style="width: 25%">Emergency Contact B</th>
|
||||
<th style="width: 40%">Driver notes</th>
|
||||
</tr>
|
||||
{% for traveller in route.travellers %}
|
||||
<tr>
|
||||
<td>{{ traveller.traveller }} ({{ traveller.traveller.school.shortName }})</td>
|
||||
<td>{{ traveller.traveller.last_name }}, {{ traveller.traveller.first_name }} ({{ traveller.traveller.school.shortName }})</td>
|
||||
<td>{{ traveller.parent_a }}</td>
|
||||
<td>{{ traveller.parent_b }}</td>
|
||||
<td>{{ traveller.contact_a }}</td>
|
||||
|
||||
Reference in New Issue
Block a user