{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_submit, input_csrf_token, input_text with context %} {% from "macros/general.html" import display_subnav, set_account_status_img, display_domain_cn, display_preferred_language, display_timezones, display_account_status, with context %} {% from "macros/ldap.html" import display_enabled_services with context %} {% from "macros/msg_handlers.html" import domain_msg_handler with context %} {% block title %}{{ _('Edit account profile') }}{% endblock %} {% block navlinks_domains %}class="active"{% endblock %} {% set entries = profile %} {% set domainName = entries.get('domainName')[0] %} {% set cn = entries.get('cn', [''])[0] %} {% set accountStatus = entries.get('accountStatus', ['disabled'])[0] |lower %} {# Get per-domain account settings #} {% set accountSetting = domain_account_settings %} {% if profile_type == 'general' %} {% set disclaimer_text = entries.get('disclaimer', [''])[0] %} {% elif profile_type == 'advanced' %} {# Default language for new user #} {% set defaultLanguage = accountSetting.get('defaultLanguage') %} {% endif %} {% block breadcrumb %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), ('active', ctx.homepath + '/profile/domain/general/' + cur_domain, _('Profile of domain:') + ' ' + cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), ] %} {{ display_subnav(crumbs) }} {% endblock %} {# Domain profile. #} {% block main %} {# Show system message #} {{ domain_msg_handler(msg) }} {# Set profile tabs #} {% set navlinks = [ ('general', _('General'), [true,]), ] %}
    {% for nav in navlinks %} {% if not false in nav[2] and not none in nav[2] %}
  • {{ nav[1] }}
  • {% endif %} {% endfor %}

{{ _('Profile of domain:') }} {{ cur_domain }}

{% if profile_type == 'spampolicy' %} {% set form_post_url = ctx.homepath + '/system/' + profile_type + '/' + cur_domain %} {% else %} {% set form_post_url = ctx.homepath + '/profile/domain/' + profile_type + '/' + cur_domain %} {% endif %}
{{ input_csrf_token() }} {% if profile_type == 'general' %}
{{ display_account_status(accountStatus, account_type='domain') }} {{ display_domain_cn(cn=cn) }}
{# .col2-3 #}
{#-- Disclaimer --#}

{{ _('Disclaimer') }}

{{ _('Plain text only')}}
{#-- col2-3 --#}
  • {{ _('Content of disclaimer will be appended to outgoing emails.') }}
{% if session.get('is_global_admin') %}

{{ _('Make sure disclaimer work as expected:') }}

{% endif %}
{# .col1-3 #}
{# .columns #} {% endif %} {{ input_submit() }}
{# .box-wrap #}
{# .box-body #}
{# .content-box #} {% endblock main %}