{% extends "base.html" %}
{% block entete %}Gestion des superusers{% endblock %}
{% block navbar %}
<ul>
	<li><a href="#first">Liste des superusers</a></li>
</ul>
{% endblock %}
{% block content %}
<section id="first" class="main">
	<header class="major">
		<h2>Liste des superusers</h2>
	</header>
	<a class="button" href="{% url 'users:addSuperuser' %}"><i class="fa fa-user-plus"></i> Ajouter un superuser</a><br><br>
	<div class="table-wrapper">
		<table>
			<thead>
				<tr>
					<th>Utilisateur</th>
					<th>Profil</th>
					<th>Administrer</th>
				</tr>
			</thead>
			<tbody>
				{% for user in superusers %}
				<tr>
					<td><a href="{% url 'users:profile' user.pk %}">{{user}}</a></td>
					<td><a class="button small" href="{% url 'users:profile' user.pk %}"><i class="fa fa-user"></i> Profil</a></td>
					<td><a class="button small" href="{% url 'users:removeSuperuser' user.pk %}"><i class="fa fa-minus-square"></i> Retirer des superusers</a></td>
				</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
</section>
{% endblock %}
