{% 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, 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 %} {% set cn = admin_profile.get('cn', [''])[0] %} {% set first_name = admin_profile.get('givenName', [''])[0] |e %} {% set last_name = admin_profile.get('sn', [''])[0] |e %} {% set accountStatus = admin_profile.get('accountStatus', ['disabled'])[0] %} {% set disabled_services = admin_profile.get('disabledService', []) %} {% 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 %}