Further candidate management improvements

This commit is contained in:
Ross
2022-11-28 15:48:50 +00:00
parent 77687327ea
commit 65b1d2da3c
11 changed files with 219 additions and 59 deletions
+25 -7
View File
@@ -24,15 +24,33 @@
</div>
<h3>Groups</h3>
<h3>Groups</h3>
<ul>
{% for group in user.user_groups.all %}
<li>{{group}}</li>
{% empty %}
<ul>
{% for group in user.user_groups.all %}
<li><a href="{% url 'generic:user_group_detail' group.pk %}">{{group}}</a></li>
{% empty %}
<li>No groups.</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
<h3>Exams</h3>
<p>
{% with user.userprofile.get_exams as exam_map %}
{% for exam_type, exams in exam_map.items %}
<h4>{{exam_type}}</h4>
<ul>
{% for exam in exams %}
<li>
<a href="{{exam.get_absolute_url}}">{{exam}}</a>
</li>
{% endfor %}
</ul>
{% empty %}
No exams.
{% endfor %}
{% endwith %}
</p>
<a href="{% url 'password_change'%}">Change password</a>