{% extends "org-base.html" %} {% from "ui.html" import csrf_field, danger_zone with context %} {% block section %}

{{ _("General") }}

{{ csrf_field() }}

{{ _("Default role in the spaces") }}

{{ csrf_field() }}

{{ _("Applies to the spaces of the organization, present and future, without adding the members one by one. A member keeps a higher role given in a space. A restricted space (human resources, management) ignores it: only its own members access it. Administrators keep access to every space.") }}

{% set restricted = org_spaces|selectattr("restricted")|list %} {% if restricted %}

{{ _(pl(restricted|length, "Restricted space: {names}.", "Restricted spaces: {names}."), names=restricted|map(attribute="name")|join(", ")) }}

{% endif %}
{% if user.is_superadmin %}
{{ danger_zone(_("Delete organization"), _("Its members lose access. Git repositories are not touched."), "/o/" ~ org.slug ~ "/-/delete", org.slug, disabled_reason=_(pl(org_spaces|length, "Delete its space first.", "Delete its {count} spaces first."), count=org_spaces|length) if org_spaces else "") }}
{% endif %} {% endblock %}