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

{{ title }}

{% trans 'Account Name' %} {% trans 'CoA' %} {% trans 'Parent' %} {% trans 'Code' %} {% trans 'Balance Type' %} {% trans 'Active' %} {% trans 'Locked' %} {% trans 'Actions' %}
{{ role | upper }}
{{ account.name }} {{ account.coa_model.name }} {% if not account.get_parent.is_coa_root %}{{ account.get_parent }}{% endif %} {{ account.code }} {{ account.get_balance_type_display }} {% if account.active %} {% icon 'ant-design:check-circle-filled' 24 %} {% elif not account.active %} {% icon 'mdi:dangerous' 24 %} {% endif %} {% if account.locked %} {% icon 'bi:lock-fill' 24 %} {% elif not account.locked %} {% icon 'bx:bx-lock-open-alt' 24 %} {% endif %}
{% endwith %} {% endfor %}