<commit_before>{% set translationDomain = "report-bank-accounts" %}
{% trans_default_domain translationDomain %}

<h2 class="heading heading-medium">List of accounts</h2>

<table class="behat-region-list-accounts">
    <thead>
    <tr>
        <td>Account</td>
        <td>Balance on {{ report.endDate | date("jS F Y") }}</td>
        <td>Balance on {{ report.startDate | date("jS F Y") }}</td>
        <td></td>
        <td></td>
    </tr>
    </thead>
    {% for account in report.accounts %}
        <td>
            {% if account.requiresBankNameAndSortCode %}
                {{ account.bank }}<br/>
            {% endif %}
            {{ account.accountTypeText }}<br/>
            {% if account.requiresBankNameAndSortCode %}
                Sort code: {{ account.sortCode }}<br/>
            {% endif %}
            Account number: ****{{ account.accountNumber }}
            {% if account.isClosed %} {# //TODO ask Kevin how we display this #}
                <div class="descriptive-list-item no-border">
                    <span class="status account-closed">ACCOUNT CLOSED</span>
                </div>
            {% endif %}
            {% if account.isJointAccount %} {# //TODO ask Kevin how we display this #}
                <div class="descriptive-list-item no-border">
                    <span class="status account-">JOINT ACCOUNT</span>
                </div>
            {% endif %}
        </td>
        <td>
            £{{ account.openingBalance | money_format }}
        </td>
        <td>
            £{{ account.closingBalance == null ? ' -,-' : (account.closingBalance | money_format) }}
        </td>
        <td>
            <a class="edit-link behat-link-account-{{ account.accountNumber }}"
               href="{{ path('bank_account_step' , {'reportId': report.id, 'step': 1, 'accountId': account.id}) }}">
                Edit
            </a>  </td><commit_msg>otpp bank accounts joint and closed in list<commit_after>{% set translationDomain = "report-bank-accounts" %}
{% trans_default_domain translationDomain %}

<h2 class="heading heading-medium">List of accounts</h2>

<table class="behat-region-list-accounts">
    <thead>
    <tr>
        <td>Account</td>
        <td>Balance on {{ report.endDate | date("jS F Y") }}</td>
        <td>Balance on {{ report.startDate | date("jS F Y") }}</td>
        <td></td>
        <td></td>
    </tr>
    </thead>
    {% for account in report.accounts %}
        <td>
            {% if account.requiresBankNameAndSortCode %}
                {{ account.bank }}<br/>
            {% endif %}
            {{ account.accountTypeText }}<br/>
            {% if account.requiresBankNameAndSortCode %}
                Sort code: {{ account.sortCode }}<br/>
            {% endif %}
            Account number: ****{{ account.accountNumber }}<br/>
            Joint account: {{ account.isJointAccount ? 'Yes' : 'No' }}<br/>
            Closed: {{ account.isClosed ? 'Yes' : 'No' }}
        </td>
        <td>
            £{{ account.openingBalance | money_format }}
        </td>
        <td>
            £{{ account.closingBalance == null ? ' -,-' : (account.closingBalance | money_format) }}
        </td>
        <td>
            <a class="edit-link behat-link-account-{{ account.accountNumber }}"
               href="{{ path('bank_account_step' , {'reportId': report.id, 'step': 1, 'accountId': account.id}) }}">
                Edit
            </a>  </td>
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0017482517482517483, 'mean_word_length': 1.8632193494578815, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3315231', 'n_tokens_mistral': 1061, 'n_tokens_neox': 990, 'n_words': 223}