Further candidate management improvements
This commit is contained in:
+25
-7
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user