{% from "macros/form_inputs.html" import input_text, input_checkbox, input_textarea, input_csrf_token with context %} {% from "macros/general.html" import display_filter_by_first_char, display_list_access_policies with context %} {% macro display_maillist_basic_profile(profile=None, access_policy=None, mail=None) -%} {% if not profile %} {% set profile = {} %} {% endif %} {{ input_text(label=_('Prefix text to mail subject'), input_name='subject_prefix', value=profile.get('subject_prefix', '')) }} {% set max_mail_size_in_bytes = profile.get('max_message_size', '0') | int %} {% if max_mail_size_in_bytes == 0 %} {% set max_mail_size_in_form = 0 %} {% set max_mail_size_unit = 'MB' %} {% elif (max_mail_size_in_bytes % 1024) == 0 and max_mail_size_in_bytes >= (1024*1024) %} {# MB #} {% set max_mail_size_in_form = (max_mail_size_in_bytes / (1024*1024)) | int %} {% set max_mail_size_unit = 'MB' %} {% else %} {# KB #} {% set max_mail_size_in_form = (max_mail_size_in_bytes / 1024) |int %} {% set max_mail_size_unit = 'KB' %} {% endif %}
| {{ _('Email') }} | {{ _('Domain') }} | {{ _('Mail Delivery') }} | |
|---|---|---|---|
| {{ _mail }} | {{ _domain }} | {%- if _subscription == 'normal' -%} {{ _('All emails') }} {%- elif _subscription == 'digest' -%} {{ _('Digest') }} {%- elif _subscription == 'nomail' -%} {{ _('No email') }} {%- else %} {{ _subscription }} {%- endif -%} | |
| {{ _('No members.') }} | |||