{% 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 %} {% 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 %} {% set input_csrf_token = display_csrf_token() %} {# Show system message #} {{ domainMsgHandler(msg) }} {% set navlinks = [ ('general', _('General'), [true,]), ] %}
{#-- Links --#}
    {% 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 }}

{# .box-header #}
{# profile_type: general #}
{{ input_csrf_token }}
{% if session.get('domainGlobalAdmin') is sameas true %} {{ display_account_status(profile.active, accountType='domain') }} {% endif %} {{ display_input_cn(profile.description, accountType='domain') }}
{# .col2-3 #}
 
{% if session.get('domainGlobalAdmin') is sameas true %} {% if profile.maxquota >= 1024*1024 %} {% set domainQuota = profile.maxquota / (1024*1024) %} {% set domainQuotaUnit = 'TB' %} {% elif 1024*1024 > profile.maxquota >= 1024 %} {% set domainQuota = profile.maxquota / 1024 %} {% set domainQuotaUnit = 'GB' %} {% else %} {% set domainQuota = profile.maxquota %} {% set domainQuotaUnit = 'MB' %} {% endif %} {% endif %}
{# .col2-3 #}
{# .columns #} {{ display_button_submit() }}
{# .box-wrap #}
{# .box-body #}
{# .content-box #} {% endblock main %}