2018-12-14 13:24:04 +00:00
|
|
|
{% extends "administration/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utils %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2019-02-25 12:31:11 +00:00
|
|
|
<h1><span class="pficon-users"></span> {% trans "Users" %}</h1>
|
|
|
|
<hr>
|
2019-10-08 09:27:19 +00:00
|
|
|
<a href="{% url 'passbook_admin:user-create' %}?back={{ request.get_full_path }}" class="btn btn-primary">
|
|
|
|
{% trans 'Create...' %}
|
|
|
|
</a>
|
|
|
|
<hr>
|
2019-02-25 12:31:11 +00:00
|
|
|
<table class="table table-striped table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans 'Username' %}</th>
|
2019-02-27 14:09:05 +00:00
|
|
|
<th>{% trans 'Name' %}</th>
|
2019-02-25 12:31:11 +00:00
|
|
|
<th>{% trans 'Active' %}</th>
|
|
|
|
<th>{% trans 'Last Login' %}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for user in object_list %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ user.username }}</td>
|
2019-02-27 14:09:05 +00:00
|
|
|
<td>{{ user.name|default:'-' }}</td>
|
2019-02-25 12:31:11 +00:00
|
|
|
<td>{{ user.is_active }}</td>
|
|
|
|
<td>{{ user.last_login }}</td>
|
|
|
|
<td>
|
|
|
|
<a class="btn btn-default btn-sm"
|
|
|
|
href="{% url 'passbook_admin:user-update' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
|
|
|
<a class="btn btn-default btn-sm"
|
|
|
|
href="{% url 'passbook_admin:user-delete' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
2019-02-25 19:46:23 +00:00
|
|
|
<a class="btn btn-default btn-sm"
|
|
|
|
href="{% url 'passbook_admin:user-password-reset' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Reset Password' %}</a>
|
2019-03-10 01:41:31 +00:00
|
|
|
<a class="btn btn-default btn-sm"
|
|
|
|
href="{% url 'passbook_core:overview' %}?__impersonate={{ user.pk }}">{% trans 'Impersonate' %}</a>
|
2019-02-25 12:31:11 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-10-14 11:15:42 +00:00
|
|
|
{% include 'partials/pagination.html' %}
|
2018-12-14 13:24:04 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|