add trainees page

This commit is contained in:
Ross
2023-11-13 13:23:47 +00:00
parent 15915ef5c0
commit 6bb4b9ac34
4 changed files with 115 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{% extends 'generic/base.html' %}
{% load crispy_forms_tags %}
{% block css %}
{% endblock %}
{% block content %}
<h2>
{% if grade %}
{{grade}}
{% endif %}Trainees
</h2>
<table>
<tr class="header"><th>Name</th><th>Grade</th><th>Email</th><th>Supervisor</th></tr>
{% for trainee in trainees %}
<tr class="trainee"><td>{{trainee.user.first_name}} {{trainee.user.last_name}}</td><td>{{trainee.grade}}</td><td>{{trainee.user.email}}</td><td>{{trainee.supervisor}}</td></tr>
{% endfor %}
</table>
{% endblock %}