|
1
2
3
4
|
{% extends "base.html" %}
{% load ingroup %}
{% block extrahead %}
|
|
5
6
|
<script type="text/javascript"
src="{{ MEDIA_URL }}js/manage-groups.js"></script>
|
|
7
8
9
10
11
|
{% endblock %}
{% block title %}Role użytkowników{% endblock %}
{% block content %}
|
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<h3>Role użytkowników</h3>
<table id="user-groups">
<tr>
<th>nazwa</th>
{% 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 %}
|