{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_submit, input_csrf_token with context %} {% from "macros/general.html" import display_subnav, set_account_status_img, display_account_status, display_input_cn, display_preferred_language, display_timezones, display_reset_password, display_random_password, display_input_global_admin, display_domain_creation_options_of_normal_admin with context %} {% from "macros/sql.html" import display_all_domains with context %} {% from "macros/msg_handlers.html" import admin_msg_handler with context %} {% block title %}{{ _('Edit account profile') }}{% endblock %} {% block navlinks_admins %}class="active"{% endblock %} {% block breadcrumb %} {% if session.get('is_global_admin') %} {% set crumbs = [(ctx.homepath + '/admins', _('All admins')), ('active', ctx.homepath + '/profile/admin/general/' + mail, _('Profile of admin:') + ' ' + mail)] %} {% else %} {% set crumbs = [('active', ctx.homepath + '/profile/admin/general/' + mail, _('Profile of admin:') + ' ' + mail)] %} {% endif %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {# Show system message #} {% if msg %} {% if msg.startswith('PW_') %} {% set _pw_errors = msg.split(',') %} {% for _err in _pw_errors %} {{ admin_msg_handler(_err) }} {% endfor %} {% else %} {{ admin_msg_handler(msg) }} {% endif %} {% endif %} {% set navlinks = [ ('general', _('General'), []), ('password', _('Password'), []), ] %}
    {% for nav in navlinks %} {% if not false in nav[2] and not none in nav[2] %}
  • {{ nav[1] }}
  • {% endif %} {% endfor %}

{{ _('Profile of admin:') }} {{ mail }}

{{ input_csrf_token() }}
{% if session.get('is_global_admin') %} {{ display_account_status(profile.active) }} {% endif %} {{ display_input_cn(value=profile.name, account_type='admin') }} {{ display_preferred_language(value=profile.get('language', 'en_US') |e, languagemaps=languagemaps) }} {{ display_timezones(value=admin_settings.get('timezone'), timezones=timezones) }} {% if session.get('is_global_admin') %}
{{ display_input_global_admin(value=is_global_admin) }} {% endif %}
{% if session.get('is_global_admin') %}
{{ display_domain_creation_options_of_normal_admin(admin_settings=admin_settings) }}

{{ _('All domains managed by this admin share the mailbox quota and limit of mail accounts.') }}

{# .col1-3 #} {% endif %} {% if session.get('is_global_admin') %} {{ display_all_domains(managedDomains=managedDomains, allDomains=allDomains) }} {% endif %}
{# .columns #} {{ input_submit() }}
{{ input_csrf_token() }}
{% if session.get('is_global_admin') %} {{ display_reset_password( min_passwd_length=min_passwd_length, max_passwd_length=max_passwd_length, show_confirmpw=true, store_password_in_plain_text=store_password_in_plain_text) }} {% else %} {{ display_reset_password( min_passwd_length=min_passwd_length, max_passwd_length=max_passwd_length, show_oldpw=true, show_confirmpw=true, store_password_in_plain_text=store_password_in_plain_text) }} {% endif %}
{{ display_random_password(password_length=min_passwd_length, password_policies=password_policies) }}
{{ input_submit() }}
{# .box-wrap #}
{# .box-body #}
{#-- .content-box --#} {% endblock main %} {% block extra_js %} {% endblock extra_js %}