{% macro display_all_domains(managedDomains=[], allDomains=[]) -%}

{{ _('Managed Domains') }}

{% for domain in allDomains %} {% set domainName = domain[1].get('domainName')[0] %}
{% endfor %}
{#-- .col2-3 --#}
{#-- .columns --#} {%- endmacro %} {% macro display_all_admins(domainAdmins=[], allAdmins=[]) -%}

{{ _('Domain Admins') }}

{% for (dn, entry) in allAdmins %} {% set mail = entry.get('mail')[0] |e %}
{% endfor %}
{%- endmacro %} {# Display enabledService - accountType: domain, admin, user, maillist, alias. - enabledService: list of all enabled services. #} {% macro display_enabled_services(accountType, enabledService, greylisted=false) -%} {# Set list of available services for different account types. Format: [ ('type_of_input', 'value_of_enabledService', 'label'), ... ] @type_of_input: value of attribute "type" in HTML tag. Available: hidden, checkbox. Note: This is an OPTIONAL. #} {% if accountType == 'domain' %} {% set available_services = [ ('checkbox', 'domainalias', _('Domain alias')), ('checkbox', 'recipientbcc', _('BCC incoming mails to other address')), ('checkbox', 'senderbcc', _('BCC outgoing mails to other address')), ] %} {% elif accountType == 'user' %} {% set available_services = [ ('hidden', 'internal', ''), ('checkbox', 'smtp', _('Sending mails via SMTP')), ('checkbox', 'smtpsecured', _('Sending mails via SMTP over TLS/SSL')), ('checkbox', 'pop3', _('Fetching mails via POP3')), ('checkbox', 'pop3secured', _('Fetching mails via POP3 over TLS/SSL')), ('checkbox', 'imap', _('Fetching mails via IMAP')), ('checkbox', 'imapsecured', _('Fetching mails via IMAP over TLS/SSL')), ('checkbox', 'deliver', _('Receiving mails for this account on mail server')), ('checkbox', 'forward', _('Forwarding mails to other addresses')), ('checkbox', 'shadowaddress', _('Alias account')), ('checkbox', 'managesieve', _('Customize mail filter rule')), ('checkbox', 'managesievesecured', _('Customize mail filter rule over TLS/SSL')), ('checkbox', 'recipientbcc', _('BCC incoming mails to other address')), ('checkbox', 'senderbcc', _('BCC outgoing mails to other address')), ('checkbox', 'displayedInGlobalAddressBook', _('Display mail address in global LDAP address book')), ] %} {% elif accountType == 'alias' %} {% set available_services = [ ('checkbox', 'displayedInGlobalAddressBook', _('Display mail address in global LDAP address book')), ] %} {% endif %}

{{ _('Enabled Services') }}

{% for srv in available_services %} {% if srv[0] != 'hidden' %}

 

{% endif %}
{% endfor %} {%- endmacro %}