{% load i18n %} {% load django_ledger %}
{% if title %} {% endif %} {% for account in accounts %} {% endfor %}

{{ title }}

{% trans 'Role' %} {% trans 'Parent' %} {% trans 'Code' %} {% trans 'Account Name' %} {% trans 'Balance Type' %} {% trans 'Active' %} {% trans 'Locked' %} {% trans 'Actions' %}
{{ account.get_role_display }} {{ account.parent.code }} {{ account.code }} {{ account.name }} {% if account.is_debit %} {% icon 'bi:arrow-bar-down' 24 %} {% elif account.is_credit %} {% icon 'bi:arrow-bar-up' 24 %} {% endif %} {% if account.active %} {% icon 'ant-design:check-circle-filled' 24 %} {% endif %} {% if account.locked %} {% icon 'bi:lock-fill' 24 %} {% elif not account.locked %} {% icon 'bx:bx-lock-open-alt' 24 %} {% endif %}