{% extends "layout.html" %} {% from "macros/general.html" import display_subnav, display_csrf_token, set_account_status_img, display_button_submit, display_input_cn, display_account_status, with context %} {% from "macros/msgHandlers.html" import domainMsgHandler with context %} {% block title %}{{ _('Edit account profile') }}{% endblock %} {% block navlinks_active_domains %}class="active"{% endblock %} {% set p = profile[0] %} {% set dn = p[0] %} {% set entries = p[1] %} {% set domainName = entries.get('domainName')[0] %} {% set cn = entries.get('cn', [domainName])[0].decode('utf-8') %} {% set accountStatus = entries.get('accountStatus', ['disabled'])[0] |lower %} {% block breadcrumb %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains'),), ('active', ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain,), (ctx.homepath + '/users/' + cur_domain, _('Users'),), ] %} {{ display_subnav(crumbs) }} {% endblock %} {# Domain profile. #} {% block main %} {# Show system message #} {{ domainMsgHandler(msg) }} {% 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 |e }}

{{ display_csrf_token() }} {% if profile_type == 'general' %}
{% if session.get('domainGlobalAdmin') is sameas true %} {{ display_account_status(accountStatus, accountType='domain') }} {% endif %} {{ display_input_cn(cn, accountType='domain') }}
{# .col2-3 #}
{% endif %} {{ display_button_submit() }}
{# .box-wrap #}
{# .box-body #}
{# .content-box #} {% endblock main %}