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 %}
|
|
|
|
|
2016-10-07 21:40:44 +00:00
|
|
|
{% if users_list.paginator %}
|
|
|
|
{% include "pagination.html" with list=users_list %}
|
|
|
|
{% endif %}
|
2016-07-22 01:25:04 +00:00
|
|
|
|
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-11-24 17:12:11 +00:00
|
|
|
<th>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>
|
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-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 %}
|
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>
|
|
|
|
|