{% load i18n %} {% load django_ledger %} {% for root_role, role_list in accounts_gb %} {% with title=root_role %}
{% if title %} {% endif %} {% for role, acc_list in role_list %} {% for account in acc_list %} {% endfor %} {% endfor %}

{{ title | upper }}

{% trans 'Account Name' %} {% trans 'CoA' %} {% trans 'Balance Type' %} {% trans 'Active' %} {% trans 'Locked' %} {% trans 'CoA Role Default' %} {% trans 'Actions' %}
{{ role | upper }}
{{ account.code }}: {{ account.name }} {{ account.coa_model.name }} {{ account.get_balance_type_display }} {% if account.is_active %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'mdi:dangerous' 24 %} {% endif %} {% if account.is_locked %} {% icon 'ooui:lock' 24 %} {% else %} {% icon 'ooui:un-lock' 24 %} {% endif %} {% if account.role_default %} {% icon 'ant-design:check-circle-filled' 24 %} {% endif %}
{% endwith %} {% endfor %}