2016-07-03 18:09:58 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Prénom</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Pseudo</th>
|
|
|
|
<th>Inscrit le</th>
|
2016-07-03 19:48:46 +02:00
|
|
|
<th>Etat</th>
|
2016-07-03 18:09:58 +02:00
|
|
|
<th>Profil</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for user in users_list %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ user.name }}</td>
|
|
|
|
<td>{{ user.surname }}</td>
|
|
|
|
<td>{{ user.pseudo }}</td>
|
|
|
|
<td>{{ user.registered }}</td>
|
2016-07-03 19:48:46 +02:00
|
|
|
<td>{% if user.state == 0 %}
|
|
|
|
<font color="green">Actif</font>
|
|
|
|
{% elif user.state == 1 %}
|
|
|
|
<font color="red">Désactivé</font>
|
|
|
|
{% else %}
|
|
|
|
<font color="orange">Archivé</font>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-07-03 18:09:58 +02:00
|
|
|
<td><form method="POST" action="{% url "users:profil"%}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="user" id="user" value="{{ user.pseudo }}"></input>
|
|
|
|
<button class="btn btn-primary btn-sm" type="submit"><i class="glyphicon glyphicon-tree-deciduous"></i></button>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|