src/users/templates/users/list_user_delete.html
{% extends 'users/dashboard.html' %}
{% load i18n %}
{% block dashboard_content %}
<div class="margin">
<h1 class="text-center">{% trans "List of Registered Users:" %}</h>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="margin">
<table class ="table table-bordered">
<tr>
<th>{% trans "First Name" %}</th>
<th>{% trans "Last Name" %}</th>
<th>{% trans "Email" %}</th>
<th>{% trans "Delete" %}</th>
</tr>
{% for user in users %}
<tr>
{% if user.email != request.user.email %}
<td>{{user.first_name}}</td>
<td>{{user.last_name}}</td>
<td>{{user.username}}</td>
<td><a class="glyphicon glyphicon-trash" href="{% url 'users:delete_user' user.id %}"></a></td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
</div>
</div>
{% endblock %}