{% extends "admin_base.html" %} {% block copyright %} {% endblock %} {% set body_id = 'group_edit' %} {% set page_heading = 'Edit group' if group else 'Add group' %} {% block body %} {{ super() }}
{% if err_msg %}
{{ err_msg|newlines }}
{% else %} {% set form_method = 'put' if group else 'post' %} {% set form_action = url_for('api.admin.group', group_id=group.id) if group else url_for('api.admin.group') %} {% set allow_perms = is_permitted(SystemPermission.PERMIT_ADMIN_PERMISSIONS) %} {% set checked = 'checked="checked"'|safe %} {% set disabled = 'disabled="disabled"'|safe %}
{% if not group or group.group_type == GROUP_TYPE_LOCAL %} {% else %} {% set group_title = 'System group' if group.group_type == GROUP_TYPE_SYSTEM else 'Controlled externally' %} {% endif %}
{% if group and group.id != GROUP_ID_PUBLIC %}
{% endif %} {% if group.id != GROUP_ID_PUBLIC %} {% if not allow_perms %}
{% endif %}
Allow creation of portfolios
Allow access to reports
Portfolio administration
Files and folders administration
User and basic group administration
Full group administration, grant and revoke permissions
Super user
{% if not allow_perms %}
{% endif %} {% endif %}
{% macro member(id, username, name, member) -%}
{{ username }} ({{ name }})
{%- endmacro %}

Group members


{% if not group %} Available after your new group has been created. {% elif group.id == GROUP_ID_PUBLIC %} This is a special group that is used to set the permissions for public
(anonymous, not logged in) image requests. {% else %}
In group
{% for user in group.users %} {% if user.status == STATUS_ACTIVE %} {{ member(user.id, user.username, user.get_full_name(), 'in') }} {% endif %} {% endfor %}

Double-click or
drag and drop users to set the group members.

Not in group
{% for user in users %} {% if user not in group.users and user.status == STATUS_ACTIVE %} {{ member(user.id, user.username, user.get_full_name(), 'out') }} {% endif %} {% endfor %}

{% endif %} {% endif %} {% endblock %}