{% extends "reports/base.html" %}
{% load i18n %}
{% load base_filters %}

{% block content %}


<h1>{% trans "Superuser Security Level Report" %}</h1>

{% trans "Lists all users with a security level of Superuser. This can be helpful as a cross reference when auditing." %}



<table style="width: 80%;">
<tr>
	<th>{% trans "#" %}</th>
	<th>
		{% if is_ascending_username %}
		<a href="{% url reports-admin-users %}?sort=username" >{% trans "Username" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-username" >{% trans "Username" %}</a>
		{% endif %}
	</th>
	<th>
		{% if is_ascending_id %}
		<a href="{% url reports-admin-users %}?sort=id" >{% trans "UserId" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-id" >{% trans "UserId" %}</a>
		{% endif %}
	</th>
	<th>
		{% if is_ascending_last_name %}
		<a href="{% url reports-admin-users %}?sort=last_name" >{% trans "Lastname" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-last_name" >{% trans "Lastname" %}</a>
		{% endif %}
	</th>
	<th>
		{% if is_ascending_first_name %}
		<a href="{% url reports-admin-users %}?sort=first_name" >{% trans "Firstname" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-first_name" >{% trans "Firstname" %}</a>
		{% endif %}
	</th>
	<th>
		{% if is_ascending_email %}
		<a href="{% url reports-admin-users %}?sort=email" >{% trans "Email" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-email" >{% trans "Email" %}</a>
		{% endif %}
	</th>
	<th>
		{% if is_ascending_phone %}
		<a href="{% url reports-admin-users %}?sort=phone" >{% trans "Phone" %}</a>
		{% else %}
		<a href="{% url reports-admin-users %}?sort=-phone" >{% trans "Phone" %}</a>
		{% endif %}
	</th>
</tr>
{% for profile in profiles %}
<tr class="{% cycle 'odd' '' %}">
	<td>{{ forloop.counter }}</td>
	<td><a href="{% url profile profile.user.username %}">{{ profile.user.username }}</a></td>
	<td>{{ profile.user.pk }}</td>
	<td>{{ profile.user.last_name }}</td>
	<td>{{ profile.user.first_name }}</td>
	<td>{{ profile.user.email|obfuscate_email }}</td>
	<td>{{ profile.phone }}</td>
</tr>
{% endfor %}
</table>
{% endblock content %}
