{% 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_change_email_address, display_migrate_alias_to_ml, display_account_status, set_account_status_img, display_list_access_policies with context %} {% from "macros/msg_handlers.html" import alias_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')), (ctx.homepath + '/mls/' + cur_domain, _('Mailing Lists')), (ctx.homepath + '/aliases/' + cur_domain, _('Aliases')), ('active', ctx.homepath + '/profile/alias/general/' + mail, _('Profile of alias:') + ' ' + mail), (ctx.homepath + '/admins/' + cur_domain, _('Admins')), ] %} {% if backend != "pgsql" %} {% set crumbs = crumbs + [(ctx.homepath + '/users/' + cur_domain + '/last_logins', _('Last Logins'))] %} {% endif %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {# Show system message #} {{ alias_msg_handler(msg) }} {% set navlinks = [ ('general', _('General'), [true,]), ] %}

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

    {% for nav in navlinks %} {% if not false in nav[2] and not none in nav[2] %}
  • {{ nav[1] }}
  • {% endif %} {% endfor %}
{# -- box-header -- #} {# modal window used to change email address #} {{ display_change_email_address(current_domain=cur_domain, post_url=ctx.homepath + '/profile/alias/rename/' + mail ) }} {{ display_migrate_alias_to_ml(mail=mail) }}
{{ input_csrf_token() }}
{{ display_account_status(profile.active) }} {{ display_input_cn(value=profile.name) }}
{# -- Access policy -- #} {% set accessPolicy = profile.get('accesspolicy', 'public').lower() |e %} {% if accessPolicy == '' %} {% set accessPolicy = 'public' %} {% endif %} {{ display_list_access_policies(policy=accessPolicy) }}
{# col3-4 #}
{# .columns #}
 
{# List all members. #}

{{ _('Members') }} 

{{ _('One mail address per line. Invalid address will be discarded.') }}
{#-- .form-field --#}
 
{# List all moderators. #}

{{ _('Moderators') }} 

{{ _('One mail address per line. Invalid address will be discarded.') }}
{#-- .form-field --#} {{ input_submit() }}
{# #profile_general #}
{#-- .box-wrap --#}
{#-- .box-body --#}
{#-- .content-box --#} {% endblock main %}