{% extends "base.html" %} {% load i18n static %} {% block title %} {{ _("Bank Accounts") }} {% endblock title %} {% block content %} {% if bank_accounts or request.GET.q%}

{% trans "Bank Accounts" %}

{% if perms.django_ledger.add_bankaccountmodel%} {% trans "Add Bank Account" %} {% endif %}
{% include "partials/search_box.html" %} {% if page_obj.object_list or request.GET.q%}
{% for bank in bank_accounts %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Account Number" %} {% trans "Type" %} {% trans "Action" %}
{{ bank.name }} {{ bank.account_number }} {{ bank.account_type|capfirst }} {% if perms.django_ledger.change_bankaccountmodel %} {% trans "Update" %} {% endif %}
{% trans "No Accounts Found" %}
{% if page_obj.paginator.num_pages > 1 %}
{% include 'partials/pagination.html' %}
{% endif %} {% endif %}
{% else %} {% url 'bank_account_create' request.dealer.slug as create_bank_account_url %} {% include "empty-illustration-page.html" with value="bank account" url=create_bank_account_url%} {% endif %} {% endblock %}