<commit_before>{% set translationDomain = "overview" %}
{% trans_default_domain translationDomain %}

{% include 'AppBundle:Components/PageHeader:_report-header.html.twig' %}

{% if reportStatus.isReadyToSubmit and report.isDue %}
    <div id="header-report-submit" class="hero">
        <h2 class="heading">{{ 'reportIsReady' | trans() }}</h2>
        <div class="message"><a class="button-grey submit-link" href="{{ path('report_review', {'reportId': report.id}) }}">{{ 'signAndSubmit' | trans() }}</a></div>
    </div>
{% else %}

<p class="flash flash-news">
    {% for account in report.accounts %}
        {% if not account.accountNumber or (account.requiresBankNameAndSortCode and not account.sortCode) %}
            - We moved your existing asset "{{ account.bank }} {{ account.accountTypeText }}" 
            into a bank account. Please <a href="">click here</a> add add the missing information<br/>
        {% endif %}
        {#{% if account.isJointAccount is null %}
            - {{ account.bank }} {{ account.accountTypeText }}: please specify if it's a joint account. <a href="">Click here</a> to add it <br/>
        {% endif %}#}
    {% endfor %}
</p>
    
{% endif %}<commit_msg>dd-1466-assets update flash message<commit_after>{% set translationDomain = "overview" %}
{% trans_default_domain translationDomain %}

{% include 'AppBundle:Components/PageHeader:_report-header.html.twig' %}

{% if reportStatus.isReadyToSubmit and report.isDue %}
    <div id="header-report-submit" class="hero">
        <h2 class="heading">{{ 'reportIsReady' | trans() }}</h2>
        <div class="message"><a class="button-grey submit-link" href="{{ path('report_review', {'reportId': report.id}) }}">{{ 'signAndSubmit' | trans() }}</a></div>
    </div>
{% else %}

    {% for account in report.accounts %}
        {% if not account.accountNumber or (account.requiresBankNameAndSortCode and not account.sortCode) %}
            <p class="flash flash-news">
                We moved "{{ account.bank | trim('.') }}" into bank accounts, so we need some extra information:<br/>
            {% if not account.accountNumber %}
                - <a href="{{ path('upsert_account', {'reportId': report.id, 'id': account.id }) }}#account_accountType">
                    enter the account number</a><br/>
            {% endif %}
            {% if account.requiresBankNameAndSortCode and not account.sortCode %}
                - <a href="{{ path('upsert_account', {'reportId': report.id, 'id': account.id }) }}#account_bank">
                    enter the sort code</a><br/>
            {% endif %}
            </p>
        {% endif %}
    {% endfor %}
    
{% endif %}
{'fraction_non_alphanumeric': 0.17273751408186255, 'fraction_numerical': 0.0030041306796845663, 'mean_word_length': 2.9940029985007497, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '2765279', 'n_tokens_mistral': 829, 'n_tokens_neox': 751, 'n_words': 195}