47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
{% extends "administration/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load utils %}
|
|
|
|
{% block title %}
|
|
{% title %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1><span class="pficon-users"></span> {% trans "Groups" %}</h1>
|
|
<span>{% trans "Group users together and give them permissions based on the membership." %}</span>
|
|
<hr>
|
|
<a href="{% url 'passbook_admin:group-create' %}?back={{ request.get_full_path }}" class="btn btn-primary">
|
|
{% trans 'Create...' %}
|
|
</a>
|
|
<hr>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans 'Name' %}</th>
|
|
<th>{% trans 'Parent' %}</th>
|
|
<th>{% trans 'Members' %}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for group in object_list %}
|
|
<tr>
|
|
<td>{{ group.name }}</td>
|
|
<td>{{ group.parent }}</td>
|
|
<td>{{ group.user_set.all|length }}</td>
|
|
<td>
|
|
<a class="btn btn-default btn-sm"
|
|
href="{% url 'passbook_admin:group-update' pk=group.uuid %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
|
<a class="btn btn-default btn-sm"
|
|
href="{% url 'passbook_admin:group-delete' pk=group.uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% include 'partials/pagination.html' %}
|
|
</div>
|
|
{% endblock %}
|