34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
{% extends "generic/base.html" %}
|
|
|
|
{% block content %}
|
|
<h2>Users</h2>
|
|
<details class="filter">
|
|
<summary>
|
|
Filter users list
|
|
</summary>
|
|
<form method="get">
|
|
{{ filter.form.as_p }}
|
|
<input type="submit" />
|
|
</form>
|
|
</details>
|
|
{{object_list|length}} Users shown.
|
|
<ul>
|
|
{% for list_user in object_list %}
|
|
<li>Username: <a href="{% url 'account_profile' list_user.username %}">{{ list_user.username }}</a><br/>
|
|
Name: {{list_user.first_name}} {{list_user.last_name}}<br/>
|
|
Grade: {{list_user.userprofile.grade}} / Supervisor: {{list_user.userprofile.supervisor}} [{{list_user.userprofile.supervisor_email}}]<br/>
|
|
Registration number: {{list_user.registration_number}}
|
|
<button class="small-url-button"><a href="{% url 'account_update' list_user.username %}">Edit user</a></button>
|
|
<button class="small-url-button"><a href="{% url 'account_profile_update' list_user.username %}">Edit profile</a></button>
|
|
|
|
{% if user.is_superuser %}
|
|
<button class="small-url-button"><a href="{% url 'admin:auth_user_change' list_user.id %}">Admin edit</a></button>
|
|
<button class="small-url-button"><a href="{% url 'admin:auth_user_delete' list_user.id %}">Delete</a></button>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<a href="{% url 'accounts_bulk_create' %}">Bulk create users</a>
|
|
|
|
{% endblock %} |