{#- A community's fields, shared by making one and by its settings: its name, what it is for, whether its members take part or mostly read, its tools, who joins. Imported `with context`. -#} {% import "forum/_post_fields.html" as fields %} {% macro name(form) %}
{{ fields.errors(form.name) }}
{% endmacro %} {% macro description(form) %} {% set field = form.description %}
{{ _("A sentence, under its name, on its home page and in the list of communities.") }} {{ fields.errors(field) }}
{% endmacro %} {#- `kind` is the one ticked: the form's own, or a new community's. -#} {% macro members(form, kind) %}
{{ _("Its members") }} {% for value, label, note in [ ("participative", _("Take part"), _("They add documents, start discussions and may send them to everyone by e-mail.")), ("informative", _("Mostly read"), _("They read the documents and discuss; only the managers add documents and write to everyone by e-mail.")), ] %} {% endfor %}
{% endmacro %} {#- Who joins, `value` ticked: only those invited, as every community was; or anyone, who finds it among the communities to discover, on request or freely. -#} {% macro joining(form, value) %}
{{ _("Who joins") }} {% for choice, label, note in [ ("secret", _("Closed"), _("Only those its managers invite. Others do not see it.")), ("public", _("Open, on request"), _("Anyone finds it among the communities to discover and asks to join; a manager accepts.")), ("open", _("Open"), _("Anyone finds it among the communities to discover and joins at once.")), ] %} {% endfor %} {{ _("Who is not a member sees its name, what it is for and its managers, not what it holds.") }}
{% endmacro %} {#- `on` says, by field, which are ticked. -#} {% macro tools(form, on) %}
{{ _("Its tools") }} {% for field, label in [(form.has_forum, _("Discussions")), (form.has_documents, _("Documents")), (form.has_wiki, _("Wiki"))] %} {% endfor %} {{ _("A tool taken away leaves the tabs; what it holds is kept, and comes back with it.") }}
{% endmacro %}