2019-02-09 11:32:08 +01:00
|
|
|
{% extends "base/base.html" %}
|
2019-02-04 16:41:29 +01:00
|
|
|
|
2019-02-07 17:55:20 +01:00
|
|
|
{% block title %}
|
|
|
|
Panneau d'administration » <h1>Utilisateurs et groupes</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
2019-02-04 16:41:29 +01:00
|
|
|
{% block content %}
|
2019-02-05 23:21:46 +01:00
|
|
|
<section>
|
2019-02-07 17:55:20 +01:00
|
|
|
<h2>Listes des membres utiles</h2>
|
2019-02-05 23:21:46 +01:00
|
|
|
|
2019-02-07 17:55:20 +01:00
|
|
|
<table style="width:90%; margin: auto;">
|
|
|
|
<tr><th>Pseudo</th><th>Email</th><th>Date d'inscription</th><th>XP</th>
|
|
|
|
<th>Innovation</th><th>Newsletter</th><th>Modifier</th></tr>
|
2019-02-05 23:21:46 +01:00
|
|
|
|
|
|
|
{% for user in users %}
|
|
|
|
<tr><td><a href="{{ url_for('user_by_id', user_id=user.id) }}" >{{ user.name }}</a></td>
|
|
|
|
<td>{{ user.email }}</td>
|
|
|
|
<td>{{ user.register_date }}</td><td>{{ user.xp }}</td>
|
|
|
|
<td>{{ user.innovation }}</td>
|
2019-02-07 17:55:20 +01:00
|
|
|
<td>{{ "Oui" if user.newsletter else "Non" }}</td>
|
|
|
|
<td><a href="{{ url_for('adm_edit_account', user_id=user.id) }}" class="button">Modifier</a></td>
|
2019-02-06 12:44:44 +01:00
|
|
|
</tr>
|
2019-02-05 23:21:46 +01:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2019-02-07 17:55:20 +01:00
|
|
|
<h2>Groupes et privilèges</h2>
|
2019-02-05 23:21:46 +01:00
|
|
|
|
2019-02-07 17:55:20 +01:00
|
|
|
<table style="width:90%; margin: auto;">
|
|
|
|
<tr><th>Groupe</th><th>Membres</th><th>Privilèges</th></tr>
|
2019-02-05 23:21:46 +01:00
|
|
|
|
|
|
|
{% for group in groups %}
|
|
|
|
<tr><td><span style="{{ group.css }}">{{ group.name }}</span></td><td>
|
|
|
|
{% for user in group.members %}
|
|
|
|
{{ user.name }}
|
|
|
|
{% endfor %}
|
|
|
|
</td><td>
|
|
|
|
{% for priv in group.privs %}
|
|
|
|
<code>{{ priv }}</code>
|
|
|
|
{% endfor %}
|
|
|
|
</td></tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2019-02-07 17:55:20 +01:00
|
|
|
|
|
|
|
<h2>Maintenance et développement</h2>
|
|
|
|
|
|
|
|
<form action='' method='POST'>
|
|
|
|
{{ form.hidden_tag() }}
|
2019-02-07 21:22:49 +01:00
|
|
|
{{ form.submit(class="bg-orange") }}
|
2019-02-07 17:55:20 +01:00
|
|
|
</form>
|
2019-02-05 23:21:46 +01:00
|
|
|
</section>
|
2019-02-04 16:41:29 +01:00
|
|
|
{% endblock %}
|