Add 'is van driver' to trainee list, haulage super doesn't count as a supervisor

This commit is contained in:
2021-10-09 10:29:03 +01:00
parent 55558d1a4a
commit dbb9e3e530
5 changed files with 36 additions and 27 deletions

View File

@@ -14,6 +14,7 @@
<thead>
<tr>
<th scope="col">Name</th>
<th>Van Driver?</th>
<th>Supervisor?</th>
<th>Qualification Count</th>
<th></th>
@@ -23,6 +24,7 @@
{% for object in object_list %}
<tr id="row_item">
<th scope="row" class="align-middle" id="cell_name"><a href="{% url 'trainee_detail' object.pk %}">{{ object.name }} {% if request.user.pk == object.pk %}<span class="fas fa-user text-success"></span>{%endif%}</a></th>
<td {% if object.is_driver %}class="table-success"{%endif%}>{{ object.is_driver|yesno|title }}</td>
<td {% if object.is_supervisor %}class="table-success"{%endif%}>{{ object.is_supervisor|yesno|title }}</td>
<td>{{ object.qualifications_obtained.all|length }}</td>
<td>