{% extends "base.html" %} {% block title %}{{ _('Groups') }} · {{ appearance.name }}{% endblock %} {% macro parent_select(choices, selected, required) %} {% endmacro %} {% block content %}

{{ _('Groups') }}

{{ _('Groups bundle users, for example a department. Subgroups inherit: administrators and creators of a group also act in its subgroups, and a form shared with a group reaches the members of its subgroups.') }}

{% for group, depth, count in tree %} {% else %} {% endfor %}
{{ _('Name') }}{{ _('Description') }}{{ _('User types') }}{{ _('Members') }}
{% if depth %}{% endif %}{{ group.name }} {{ group.description or '' }} {% if group.roles %}{% for r in group.roles %}{{ _(role_names[r]) }}{% if not loop.last %}, {% endif %}{% endfor %}{% else %}{{ _('all') }}{% endif %} {{ count }}
{{ _('No groups yet.') }}

{{ _('New group') }}

{% if error %}{% endif %}
{{ csrf_field(request) }} {{ parent_select(parent_choices, form.parent, parent_required) }}
{{ _('Suitable for these user types') }} {% for value, label in role_names.items() %} {% endfor %}

{{ _('Shown when creating a user of that type. None or all checked: suitable for everyone.') }}

{% endblock %}