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

{{ title }}

Role Code Account Name Balance Type Active Locked Actions
{{ account.get_role_display }} {{ 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 %}