3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-12-26 00:43:46 +00:00
coope/users/templates/users/users_index.html

33 lines
No EOL
768 B
HTML

{% extends "base.html" %}
{% block entete %}Gestion des utilisateurs{% endblock %}
{% block navbar %}
<ul>
<li><a href="#first">Liste des utilisateurs</a></li>
</ul>
{% endblock %}
{% block content %}
<section id="first" class="main">
<header class="major">
<h2>Liste des utilisateurs</h2>
</header>
<a class="button" href="{% url 'users:createUser' %}">Créer un utilisateur</a><br><br>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Utilisateur</th>
<th>Profil</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user }}</td>
<td><a class="button small" href="{% url 'users:profile' user.pk %}">Profil</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}