Blame view

accounts/templates/manage_groups.html 1.02 KB
janek37 authored
1
{% extends "base.html" %}
janek37 authored
2
{% load ingroup version_static i18n %}
janek37 authored
3
4

{% block extrahead %}
janek37 authored
5
    <script type="text/javascript"
janek37 authored
6
            src="{% version_static 'js/manage-groups.js' %}"></script>
janek37 authored
7
8
{% endblock %}
janek37 authored
9
{% block title %}{% trans 'User roles' %}{% endblock %}
janek37 authored
10
janek37 authored
11
{% block text-content %}
janek37 authored
12
    <h3>{% trans 'User roles' %}</h3>
janek37 authored
13
14
    <table id="user-groups">
        <tr>
janek37 authored
15
            <th>{% trans 'name' %}</th>
janek37 authored
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>
janek37 authored
32
        {% endfor %}
janek37 authored
33
    </table>
janek37 authored
34
{% endblock %}