{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_csrf_token with context %} {% from "macros/general.html" import set_account_status_img, highlight_username_in_mail, set_admin_type_img, show_pages with context %} {% from "macros/msg_handlers.html" import admin_msg_handler with context %} {% block title %}{{ _('Domain Admins') }}{% endblock %} {% block navlinks_admins %}class="active"{% endblock %} {% block main %} {# Show system message #} {{ admin_msg_handler(msg) }} {# List admins #} {#{% if admins|length > 0 %}#} {% if admins is not string %}
{% if session.get('is_global_admin') %} {% endif %}

{{ _('All admins') }} {% if total is defined and admins|length > 0 %} ({{ (cur_page-1) * page_size_limit + 1 }}-{{ (cur_page-1) * page_size_limit + admins|length}}/{{ total }}) {% endif %}

{{ input_csrf_token() }} {% for r in admins %} {% set mail = r.username |e %} {% set name = r.name |e %} {% if r.get('isglobaladmin') is not sameas none %} {# users marked as admin #} {% if r.get('isglobaladmin') == 1 %} {% else %} {% endif %} {% else %} {# Separate admin accounts #} {% if mail in allGlobalAdmins %} {% else %} {% endif %} {% endif %} {% endfor %}
{{ _('Display Name') }} {{ _('Mail Address') }} {{ _('Global Admin') }}
{{ set_account_status_img(r.active) }} {# -- Show name -- #} {% if name == '' %}{{ mail.split('@', 1)[0] }}{% else %}{{ name |cut_string }}{% endif %} {{ mail }}{{ set_admin_type_img('yes') }}{{ set_admin_type_img('no') }}{{ set_admin_type_img('yes') }}{{ set_admin_type_img('no') }}
{# -- box body -- #}
{# -- content box -- #} {% endif %} {% endblock main %}