2017-01-15 23:07:42 +00:00
|
|
|
{% comment %}
|
|
|
|
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
|
|
se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
quelques clics.
|
|
|
|
|
|
|
|
Copyright © 2017 Gabriel Détraz
|
|
|
|
Copyright © 2017 Goulven Kermarec
|
|
|
|
Copyright © 2017 Augustin Lemesle
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
{% endcomment %}
|
2018-03-23 14:06:12 +00:00
|
|
|
<div class="table-responsive">
|
2016-10-07 21:40:44 +00:00
|
|
|
{% if users_list.paginator %}
|
2018-03-07 10:45:03 +00:00
|
|
|
{% include "pagination.html" with list=users_list %}
|
2016-10-07 21:40:44 +00:00
|
|
|
{% endif %}
|
2016-07-22 01:25:04 +00:00
|
|
|
|
2016-07-03 16:09:58 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-10-22 15:48:35 +00:00
|
|
|
<th>{% include "buttons/sort.html" with prefix='user' col="name" text="Prénom" %}</th>
|
|
|
|
<th>{% include "buttons/sort.html" with prefix='user' col="surname" text="Nom" %}</th>
|
|
|
|
<th>{% include "buttons/sort.html" with prefix='user' col="pseudo" text="Pseudo" %}</th>
|
|
|
|
<th>{% include "buttons/sort.html" with prefix='user' col="room" text="Chambre" %}</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>
|
2018-03-07 10:45:03 +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-11-24 17:12:11 +00:00
|
|
|
<td>{{ user.room }}</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 %}
|
2017-11-14 14:48:17 +00:00
|
|
|
<i class="text-success">Active</i>
|
2016-07-03 17:48:46 +00:00
|
|
|
{% else %}
|
2017-11-14 14:48:17 +00:00
|
|
|
<i class="text-danger">Désactivée</i>
|
2016-07-03 17:48:46 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2018-03-07 10:45:03 +00:00
|
|
|
<td><a href="{% url "users:profil" user.id%}" class="btn btn-primary btn-sm" role="button"><i class="fa fa-user"></i></a>
|
2016-07-05 17:34:57 +00:00
|
|
|
</td>
|
2016-07-03 16:09:58 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2017-11-14 21:23:39 +00:00
|
|
|
{% if users_list.paginator %}
|
2018-03-07 10:45:03 +00:00
|
|
|
{% include "pagination.html" with list=users_list %}
|
2017-11-14 21:23:39 +00:00
|
|
|
{% endif %}
|
2018-03-23 14:06:12 +00:00
|
|
|
</div>
|