user delete fix

This commit is contained in:
mridulnagpal 2016-12-04 12:57:20 +05:30 committed by James Valleroy
parent 0a3a68aee7
commit a2d4719685
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -40,13 +40,15 @@
<div class="list-group">
{% for user in object_list %}
<div class="list-group-item clearfix">
<a href="{% url 'users:delete' user.username %}"
class="btn btn-default btn-sm pull-right"
role="button"
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
<span class="glyphicon glyphicon-trash"
aria-hidden="true"></span>
</a>
{% if object_list|length != 1 %}
<a href="{% url 'users:delete' user.username %}"
class="btn btn-default btn-sm pull-right"
role="button"
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
<span class="glyphicon glyphicon-trash"
aria-hidden="true"></span>
</a>
{% endif %}
<a class='user-edit-label'
href="{% url 'users:edit' user.username %}"