|
1
|
{% extends "base.html" %}
|
|
2
|
{% load ingroup version_static i18n %}
|
|
3
4
|
{% block extrahead %}
|
|
5
|
<script type="text/javascript"
|
|
6
|
src="{% version_static 'js/manage-groups.js' %}"></script>
|
|
7
8
|
{% endblock %}
|
|
9
|
{% block title %}{% trans 'User roles' %}{% endblock %}
|
|
10
|
|
|
11
|
{% block text-content %}
|
|
12
|
<h3>{% trans 'User roles' %}</h3>
|
|
13
14
|
<table id="user-groups">
<tr>
|
|
15
|
<th>{% trans 'name' %}</th>
|
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{% for group in groups %}
<th>{{ group.name }}</th>
{% endfor %}
</tr>
{% for u in users %}
<tr>
<td>{{ u.username }}</td>
{% for group in groups %}
<td>
<input
type="checkbox"
id="group-{{ group.pk }}-{{ u.pk }}"
{% if u|ingroup:group %}checked="checked"{% endif %}/>
</td>
{% endfor %}
</tr>
|
|
32
|
{% endfor %}
|
|
33
|
</table>
|
|
34
|
{% endblock %}
|