{#- A community's settings, for its managers: its name, what it is for and its image; whether its members write or mostly read; its tools. Beside it, its address, which stays, and deleting it, behind a dialog that names it. Drawn in `mockups/templates/community-settings.html`. -#} {% extends "ads_community.html" %} {% import "forum/_post_fields.html" as fields %} {% import "community/_fields.html" as c with context %} {% set community = g.community %} {% block page_title %}{{ _("Settings") }} · {{ community.name }}{% endblock %} {% block content %}
{{ form.csrf_token }}

{{ _("The community's settings") }}

{{ c.name(form) }} {{ c.description(form) }}
{{ _("Its image") }}
{{ m.tile(community) }}
{#- Sent as soon as it is picked (`widgets/image.js`). -#}
{#- The field's own marker: the image saved is removed. -#} {% if community.own_image %}{% endif %}
{{ fields.errors(form.image) }}
{{ c.members(form, form.type.data) }} {{ c.tools(form, {"has_forum": form.has_forum.data, "has_documents": form.has_documents.data, "has_wiki": form.has_wiki.data}) }} {{ c.joining(form, form.visibility.data) }}
{{ _("Cancel") }}
{% endblock %} {% block overlays %} {% if is_site_admin() %}
{{ form.csrf_token }}

{{ _("Its discussions, its documents and its wiki go for its %(num)d members. This cannot be undone.", num=community.membership_count) }}

{% endif %} {% endblock %}