Initial commit
This commit is contained in:
18
templates/admin/user_list.html
Normal file
18
templates/admin/user_list.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends 'admin/model/list.html' %}
|
||||
|
||||
{% block list_row_actions %}{{ super() }}
|
||||
{% if admin_view.can_impersonate %}
|
||||
<form class="icon" method="POST" action="{{ get_url('.impersonate_view') }}">
|
||||
{{ delete_form.id(value=get_pk_value(row)) }}
|
||||
{{ delete_form.url(value=return_url) }}
|
||||
{% if delete_form.csrf_token %}
|
||||
{{ delete_form.csrf_token }}
|
||||
{% elif csrf_token %}
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
{% endif %}
|
||||
<button onclick="return confirm('{{ _gettext('Are you sure you want to impersonate as this user?') }}');" title="Impersonate user">
|
||||
<span class="glyphicon glyphicon-eye-open"></span>
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user