2016-07-22 01:25:04 +00:00
|
|
|
{% if users_list.paginator %}
|
|
|
|
<ul class="pagination nav navbar-nav">
|
|
|
|
{% if users_list.has_previous %}
|
|
|
|
<li><a href="?page={{ users_list.previous_page_number }}">Suivants</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% for page in users_list.paginator.page_range %}
|
|
|
|
<li class="{% if users_list.number == page %}active{% endif %}"><a href="?page={{page }}">{{ page }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if users_list.has_next %}
|
|
|
|
<li> <a href="?page={{ users_list.next_page_number }}">Précédents</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-07-03 16:09:58 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Prénom</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Pseudo</th>
|
2016-10-07 19:30:05 +00:00
|
|
|
<th>Uid</th>
|
2016-07-05 18:01:37 +00:00
|
|
|
<th>Fin de cotisation le</th>
|
2016-07-03 19:35:50 +00:00
|
|
|
<th>Connexion</th>
|
2016-07-03 16:09:58 +00:00
|
|
|
<th>Profil</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2016-07-10 02:02:48 +00:00
|
|
|
{% for user in users_list %}
|
2016-07-03 16:09:58 +00:00
|
|
|
<tr>
|
2016-07-10 02:02:48 +00:00
|
|
|
<td>{{ user.name }}</td>
|
|
|
|
<td>{{ user.surname }}</td>
|
|
|
|
<td>{{ user.pseudo }}</td>
|
2016-10-07 19:30:05 +00:00
|
|
|
<td>{{ user.uid_number }}</td>
|
2016-07-10 02:02:48 +00:00
|
|
|
<td>{% if user.is_adherent %}{{ user.end_adhesion }}{% else %}Non adhérent{% endif %}</td>
|
|
|
|
<td>{% if user.has_access == True %}
|
2016-07-03 19:35:50 +00:00
|
|
|
<font color="green">Active</font>
|
2016-07-03 17:48:46 +00:00
|
|
|
{% else %}
|
2016-07-03 19:35:50 +00:00
|
|
|
<font color="red">Désactivée</font>
|
2016-07-03 17:48:46 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-07-10 02:02:48 +00:00
|
|
|
<td><a href="{% url "users:profil" user.id%}" class="btn btn-primary btn-sm" role="button"><i class="glyphicon glyphicon-user"></i></a>
|
2016-07-05 17:34:57 +00:00
|
|
|
</td>
|
2016-07-03 16:09:58 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|