2019-02-04 16:41:29 +01:00
|
|
|
{% extends "base/container.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2019-02-05 23:21:46 +01:00
|
|
|
<section>
|
|
|
|
<form action='' method='POST'>
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ form.submit }}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h2>List of members</h2>
|
|
|
|
|
|
|
|
<table style="width:70%; margin: auto;">
|
|
|
|
<tr><th>Name</th><th>Email</th><th>Register</th><th>XP</th><th>Inn.</th>
|
2019-02-06 12:44:44 +01:00
|
|
|
<th>Newsletter</th><th>Edit</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-06 12:44:44 +01:00
|
|
|
<td>{{ "Yes" if user.newsletter else "No" }}</td>
|
|
|
|
<td><a href="{{ url_for('adm_edit_account', user_id=user.id) }}" class="button">Edit</a></td>
|
|
|
|
</tr>
|
2019-02-05 23:21:46 +01:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h2>List of groups</h2>
|
|
|
|
|
|
|
|
<table style="width:70%; margin: auto;">
|
|
|
|
<tr><th>Group</th><th>Members</th><th>Privileges</th></tr>
|
|
|
|
|
|
|
|
{% 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>
|
|
|
|
</section>
|
2019-02-04 16:41:29 +01:00
|
|
|
{% endblock %}
|