{% extends "useradmin/base.html" %} {% load crispy_forms_tags %} {% block content %} {% if group %}

Editing group "{{ group.name }}"

{% else %}

Create new group

{% endif %}
Back to group list {% comment %} ACTION BUTTONS {% endcomment %}
{% if group_form %} {% crispy group_form %} {% endif %}
{% if group %}
{% comment %} PRIVILEGES {% endcomment %}
Privileges
{% if group.privilege_set.all %} {% for privilege in group.privilege_set.all %} {% endfor %}
{{ privilege.type }} {{ privilege.target }} Revoke
{% else %}

Group has no privileges set.

{% endif %} {% if privilege_form %}

Grant privileges

{% crispy privilege_form %} {% endif %} {% comment %} GROUP MEMBERSHIPS {% endcomment %}
Group memberships
{% if group.accounts.all %} {% for account in group.accounts.all %} {% endfor %}
{{ account }} {% if not group.is_protected_group %} Remove {% endif %}
{% else %}

Group does not have any members.

{% endif %} {% crispy account_form %}
{% endif %} {% endblock %}