start cleaning up trainee management

This commit is contained in:
Ross
2024-09-02 12:58:05 +01:00
parent 33b49c9430
commit a024d7fca7
4 changed files with 28 additions and 1 deletions
+7 -1
View File
@@ -9,6 +9,7 @@
{% for i in "123456"|make_list %}
<a href='{% url "trainees_grade" "ST"|add:i %}'>ST{{i}}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
<a href="{% url 'account_create' %}">Add trainee</a>
<h2>
{% if grade %}
@@ -38,7 +39,12 @@
<a href="{% url 'account_profile_update' trainee.user.username %}" class="add-supervisor">add</a>
{% endif %}
</td>
<td><a href="{% url 'account_update' trainee.user.username %}">User</a>/<a href="{% url 'account_profile_update' trainee.user.username %}">Profile</a></td>
<td><a href="{% url 'account_update' trainee.user.username %}">User</a>/<a href="{% url 'account_profile_update' trainee.user.username %}">Profile</a>
<span class="hover-highlight"><i class="bi bi-x-circle" title="Click to remove trainee status"
hx-get = "{% url 'generic:user_not_trainee' trainee.user.pk %}"
></i></span>
</td>
</tr>
{% endfor %}