{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_submit, input_csrf_token with context %} {% from "macros/general.html" import display_subnav, display_input_cn, display_preferred_language, display_timezones, display_quota, display_input_employeeid, display_account_status, display_reset_password, display_random_password, with context %} {% from "macros/msg_handlers.html" import warning_info, user_msg_handler with context %} {% block title %}{{ _('Edit account profile') }}{% endblock %} {% block navlinks_domains %}class="active"{% endblock %} {% block breadcrumb %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), ('active', ctx.homepath + '/profile/user/general/' + mail, _('Profile of user:') + ' ' + mail), ] %} {{ 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 %} {{ user_msg_handler(_err) }} {% endfor %} {% else %} {{ user_msg_handler(msg) }} {% endif %} {% endif %} {% if discarded_aliases %} {% set _msg = _('Some addresses have been discarded because they have been used: %s.') |format(discarded_aliases | join(', ')) %} {{ warning_info(msg=_msg, removable=true) }} {% endif %} {% set navlinks = [ ('general', _('General'), [true]), ('password', _('Password'), [true]), ] %}