This commit is contained in:
Ross
2024-11-04 13:05:54 +00:00
parent a0a6d7f415
commit 100d23b068
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -32,7 +32,9 @@
{% for trainee in trainees %}
<tr class="trainee" _="on click log 'test' then log the next <input/> then toggle [@checked] on <input/> in me">
<td>{{trainee.user.first_name}} {{trainee.user.last_name}}</td>
<td>{{trainee.user.first_name}} {{trainee.user.last_name}}
<a href="{% url 'account_profile' trainee.username %}" class="opacity-25"><i class="bi bi-link"></i></a>
</td>
<td
{% if not trainee.grade %}
class="no-grade"
+5 -1
View File
@@ -18,7 +18,11 @@
Grade: {{ user.userprofile.grade }}
</div>
<div>
Supervisor: {{ user.userprofile.supervisor }}<br/>
Supervisor: {{ user.userprofile.supervisor }}
{% if request.user.is_superuser %}
<a href='{% url "generic:supervisor_detail" user.userprofile.supervisor.pk %}'><i class="bi bi-link"></i></a>
{% endif %}
<br/>
</div>
<div>
Registration number: {{ user.userprofile.registration_number }}