{% 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 'Actions' %}
{{ role | upper }}
{{ account.code }}: {{ account.name }} {{ account.coa_model.name }} {{ 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 %}