19 lines
716 B
HTML
19 lines
716 B
HTML
{% 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 %}
|