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
|
2019-09-29 14:02:28 +00:00
|
|
|
Copyright © 2017 Lara Kermarec
|
2017-01-15 23:07:42 +00:00
|
|
|
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-08-15 17:15:26 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
2018-03-23 14:06:12 +00:00
|
|
|
<div class="table-responsive">
|
2018-07-19 10:30:15 +00:00
|
|
|
{% if users_list.paginator %}
|
2019-01-08 23:40:59 +00:00
|
|
|
{% include 'pagination.html' with list=users_list %}
|
2018-07-19 10:30:15 +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>
|
2020-02-18 22:04:38 +00:00
|
|
|
{% trans "First name" as tr_name %}
|
2019-01-08 23:40:59 +00:00
|
|
|
<th>{% include 'buttons/sort.html' with prefix='user' col="name" text=tr_name %}</th>
|
2018-08-15 17:15:26 +00:00
|
|
|
{% trans "Surname" as tr_surname %}
|
2019-01-08 23:40:59 +00:00
|
|
|
<th>{% include 'buttons/sort.html' with prefix='user' col="surname" text=tr_surname %}</th>
|
2018-08-15 17:15:26 +00:00
|
|
|
{% trans "Username" as tr_username %}
|
2019-01-08 23:40:59 +00:00
|
|
|
<th>{% include 'buttons/sort.html' with prefix='user' col="pseudo" text=tr_username %}</th>
|
2018-08-15 17:15:26 +00:00
|
|
|
{% trans "Room" as tr_room %}
|
2019-01-08 23:40:59 +00:00
|
|
|
<th>{% include 'buttons/sort.html' with prefix='user' col="room" text=tr_room %}</th>
|
2018-08-15 17:15:26 +00:00
|
|
|
<th>{% trans "End of subscription on" %}</th>
|
|
|
|
<th>{% trans "Internet access" %}</th>
|
|
|
|
<th>{% trans "Profile" %}</th>
|
2016-07-03 16:09:58 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2018-03-07 10:45:03 +00:00
|
|
|
{% for user in users_list %}
|
2018-08-15 17:15:26 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ user.name }}</td>
|
|
|
|
<td>{{ user.surname }}</td>
|
|
|
|
<td>{{ user.pseudo }}</td>
|
|
|
|
<td>{{ user.room }}</td>
|
|
|
|
<td>{% if user.is_adherent %}{{ user.end_adhesion }}{% else %}{% trans "Not a member" %}{% endif %}</td>
|
|
|
|
<td>
|
|
|
|
{% if user.has_access == True %}
|
|
|
|
<i class="text-success">{% trans "Active" %}</i>
|
|
|
|
{% else %}
|
|
|
|
<i class="text-danger">{% trans "Disabled" %}</i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-01-08 23:40:59 +00:00
|
|
|
<a href="{% url 'users:profil' user.id%}" class="btn btn-primary btn-sm" role="button">
|
2018-08-15 17:15:26 +00:00
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-07-03 16:09:58 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2018-07-19 10:30:15 +00:00
|
|
|
{% if users_list.paginator %}
|
2019-01-08 23:40:59 +00:00
|
|
|
{% include 'pagination.html' with list=users_list %}
|
2018-07-19 10:30:15 +00:00
|
|
|
{% endif %}
|
2018-03-23 14:06:12 +00:00
|
|
|
</div>
|
2018-08-15 17:15:26 +00:00
|
|
|
|