Leaderboard of qualifications obtained

This commit is contained in:
2021-09-06 21:45:11 +01:00
parent d80aeca01f
commit f4f1fb66a2
4 changed files with 25 additions and 9 deletions

View File

@@ -13,8 +13,9 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Name<a href="?{% orderby request 'orderBy' 'name' %}"><span class="caret"></span></a></th>
<th scope="col">Name</th>
<th>Supervisor?</th>
<th>Qualification Count</th>
<th></th>
</tr>
</thead>
@@ -23,6 +24,7 @@
<tr id="row_item">
<th scope="row" class="align-middle" id="cell_name">{{ object.name }} {% if request.user.pk == object.pk %}<span class="fas fa-user text-success"></span>{%endif%}</th>
<td {% if object.is_supervisor %}class="table-success"{%endif%}>{{ object.is_supervisor|yesno|title }}</td>
<td>{{ object.qualifications_obtained.all|length }}</td>
<td>
<a class="btn btn-info" href="{% url 'trainee_detail' pk=object.pk %}"><span class="fas fa-eye"></span> View Training Record</a>
<a href="{% url 'trainee_item_detail' pk=object.pk %}" class="btn btn-info"><span class="fas fa-info-circle"></span> View Detailed Record</a>