2023-04-15 11:48:53 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
2023-04-16 22:11:32 +02:00
|
|
|
{% block title %}{{ block.super }} - {% translate "Django Impersonate - User List" %}{% endblock title %}
|
|
|
|
{% block page_title %}{% blocktranslate trimmed %}
|
|
|
|
User List - Page {{ page_number }}
|
|
|
|
{% endblocktranslate %}{% endblock page_title %}
|
2023-04-15 11:48:53 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if page.object_list %}
|
|
|
|
<ul class="list-group">
|
|
|
|
{% for user in page.object_list %}
|
2023-04-29 12:35:49 +02:00
|
|
|
<li class="list-group-item"><a href="{% url 'impersonate-start' user.pk %}{{ redirect }}">
|
|
|
|
{% blocktranslate %}Impersonate {{ user }}{% endblocktranslate %}</a>
|
2023-04-15 11:48:53 +02:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-04-22 12:56:05 +02:00
|
|
|
<p class="mt-3">
|
2023-04-16 22:11:32 +02:00
|
|
|
<a href="{% url 'impersonate-search' %}">{% translate "Search users" %}</a>
|
2023-04-15 11:48:53 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{% if page.has_previous %}
|
|
|
|
<a href="{% url 'impersonate-list' %}?page={{ page.previous_page_number }}">Previous Page</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.has_next %}
|
|
|
|
<a href="{% url 'impersonate-list' %}?page={{ page.next_page_number }}">Next Page</a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endblock %}
|