<commit_before><!DOCTYPE html>
<html class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Bank Details'" th:remove="tag" />
</head>
<body class="bank-detail">
  <div th:include="fragments/layout :: body-start" th:remove="tag" />
  <div th:include="fragments/layout :: global-header" th:remove="tag" />

  <div th:include="fragments/modals :: modal-overlay" th:remove="tag" />

<main id="content">
  <div th:include="fragments/layout :: main-content-start" th:remove="tag" />
  <div th:include="fragments/layout :: header-sub" th:with="linkTitle='Project setup status',linkClass='link-back',linkUrl=@{/project/{id}(id=${project.id})}"  th:remove="tag"></div>

  <div class="page-title">
      <p class="subtitle" th:text="${#numbers.formatInteger(project.id,8)}"/>
      <h1 class="heading-xlarge">Bank account</h1>
  </div>

	<p>In order for Innovate UK to fund your project we need your bank account details. We will then verify the bank account to the lead organisation.</p>
	<p>The bank account must belong to the organisation below.</p>

	<h3 class="heading-medium">Organisation information</h3>
	<p class="form-hint">This information provided during the application process cannot be changed.</p>

	<p class="extra-margin">
        <th:block th:text="${organisation.name}">ACME Limited</th:block> <br />
        <th:block th:if="${organisation.companyHouseNumber}" th:text="|Company no. ${organisation.companyHouseNumber}|">02423435</th:block>
	</p>

    <form th:object="${form}" th:action="@{${#ifsUtil.uriWithQueryString(#httpServletRequest)}}" method="post" th:with="readonly=${bankDetails == null ? false : true}">
    <div class="form-group" th:classappend="${#fields.hasErrors('accountNumber') ? 'error' : ''}">
      <label for="bank-acc-number">
        <span class="form-label-bold">Account number</span>
        <span class="form-hint">For example: 1548965</span>
        <span th:if="${#fields.hasErrors('accountNumber')}" th:remove="tag">
              <span class="error-message"  th:each="err : ${#fields.errors('accountNumber')}" th:text="${err}" />
        </span>
      </label>
      <input type="text" data-required-errormessage="Please enter an account number" data-minlength-errormessage="Please enter a valid account number" th:errorclass="field-error" required="required"  th:readonly="${readonly}" maxlength="8" minlength="8" id="bank-acc-number" class="form-control width-medium" th:field="*{accountNumber}"/>
    </div>

    <div class="form-group"  th:classappend="${#fields.hasErrors('sortCode') ? 'error' : ''}">
      <label for="bank-sort-code">
        <span class="form-label-bold">Sort code</span>
        <span class="form-hint">For example: 311212</span>
        <span th:if="${#fields.hasErrors('sortCode')}" th:remove="tag">
              <span class="error-message"  th:each="err : ${#fields.errors('sortCode')}" th:text="${err}" />
        </span>
      </label>
      <input type="text" data-required-errormessage="Please enter a sort code" data-minlength-errormessage="Please enter a valid sort code" th:errorclass="field-error" required="required" th:readonly="${readonly}" maxlength="6" minlength="6" id="bank-sort-code" class="form-control width-medium" th:field="*{sortCode}"/>
    </div>

    <div class="form-group" th:unless="${readonly}">
        <fieldset>
            <h2 class="heading-medium">Billing address</h2>
            <legend>
              <span class="visuallyhidden">Billing address</span>
            </legend>
            <p class="form-hint">This is the billing address of the bank account. This is not the address of the bank.</p>
            <div th:unless="${readonly}" th:include="project/bank-address-fragment :: select-address" th:with="form=${form}" th:remove="tag"/>
        </fieldset>
    </div>
    <div th:if="${readonly}">
      <h2 class="heading-medium">Billing address</h2>
      <p class="form-hint">This is the billing address of the bank account. This is not the address of the bank.</p>

      <div class="boxed extra-margin">
          <h3 class="heading-medium no-margin-top" th:unless="readonly">Confirm project location</h3>
          <p th:if="${bankDetails?.organisationAddress.address}" >
            <th:block th:each="addressLine : ${bankDetails?.organisationAddress.address.getNonEmptyLines()}">
                <span th:text="${addressLine}" th:remove="tag">An address line</span><br />
            </th:block>
          </p>
      </div>

    </div>

    <div th:include="fragments/modals :: modal-bank-details" th:remove="tag" />
    <button th:attr="formaction=@{/project/{id}/bank-details/confirm(id=${project.id})}" th:unless="${readonly}" class="button extra-margin" data-js-modal="modal-bank">Submit bank account details</button>

	</form>

    <div th:include="fragments/layout :: main-content-end" th:remove="tag" />
</main>

<div th:include="fragments/layout :: footer" th:remove="tag" />
<div th:include="fragments/layout :: body-end" th:remove="tag" />
</body>
</html>
<commit_msg>INFUND-3010 successful submit bank details<commit_after><!DOCTYPE html>
<html class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Bank Details'" th:remove="tag" />
</head>
<body class="bank-detail">
  <div th:include="fragments/layout :: body-start" th:remove="tag" />
  <div th:include="fragments/layout :: global-header" th:remove="tag" />

  <div th:include="fragments/modals :: modal-overlay" th:remove="tag" />

<main id="content">
  <div th:include="fragments/layout :: main-content-start" th:remove="tag" />
  <div th:include="fragments/layout :: header-sub" th:with="linkTitle='Project setup status',linkClass='link-back',linkUrl=@{/project/{id}(id=${project.id})}"  th:remove="tag"></div>

  <div class="page-title">
      <p class="subtitle" th:text="${#numbers.formatInteger(project.id,8)}"/>
      <h1 class="heading-xlarge">Bank account</h1>
  </div>

  <div th:unless="${bankDetails == null}" class="success-alert">
      <p><strong>Your bank account details have been submitted to Innovate UK</strong></p>
  </div>

	<p th:class="${bankDetails == null ? '' : 'extra-margin'}" >In order for Innovate UK to fund your project we need your bank account details. We will then verify the bank account to the lead organisation.</p>
	<p>The bank account must belong to the organisation below.</p>

	<h3 class="heading-medium">Organisation information</h3>
	<p class="form-hint">This information provided during the application process cannot be changed.</p>

	<p class="extra-margin">
        <th:block th:text="${organisation.name}">ACME Limited</th:block> <br />
        <th:block th:if="${organisation.companyHouseNumber}" th:text="|Company no. ${organisation.companyHouseNumber}|">02423435</th:block>
	</p>

    <form th:object="${form}" th:action="@{${#ifsUtil.uriWithQueryString(#httpServletRequest)}}" method="post" th:with="readonly=${bankDetails == null ? false : true}">
    <div class="form-group" th:classappend="${#fields.hasErrors('accountNumber') ? 'error' : ''}">
      <label for="bank-acc-number">
        <span class="form-label-bold">Account number</span>
        <span class="form-hint">For example: 1548965</span>
        <span th:if="${#fields.hasErrors('accountNumber')}" th:remove="tag">
              <span class="error-message"  th:each="err : ${#fields.errors('accountNumber')}" th:text="${err}" />
        </span>
      </label>
      <input type="text" data-required-errormessage="Please enter an account number" data-minlength-errormessage="Please enter a valid account number" th:errorclass="field-error" required="required"  th:readonly="${readonly}" maxlength="8" minlength="8" id="bank-acc-number" class="form-control width-medium" th:field="*{accountNumber}"/>
    </div>

    <div class="form-group"  th:classappend="${#fields.hasErrors('sortCode') ? 'error' : ''}">
      <label for="bank-sort-code">
        <span class="form-label-bold">Sort code</span>
        <span class="form-hint">For example: 311212</span>
        <span th:if="${#fields.hasErrors('sortCode')}" th:remove="tag">
              <span class="error-message"  th:each="err : ${#fields.errors('sortCode')}" th:text="${err}" />
        </span>
      </label>
      <input type="text" data-required-errormessage="Please enter a sort code" data-minlength-errormessage="Please enter a valid sort code" th:errorclass="field-error" required="required" th:readonly="${readonly}" maxlength="6" minlength="6" id="bank-sort-code" class="form-control width-medium" th:field="*{sortCode}"/>
    </div>

    <div class="form-group" th:unless="${readonly}">
        <fieldset>
            <h2 class="heading-medium">Billing address</h2>
            <legend>
              <span class="visuallyhidden">Billing address</span>
            </legend>
            <p class="form-hint">This is the billing address of the bank account. This is not the address of the bank.</p>
            <div th:unless="${readonly}" th:include="project/bank-address-fragment :: select-address" th:with="form=${form}" th:remove="tag"/>
        </fieldset>
    </div>
    <div th:if="${readonly}">
      <h2 class="heading-medium">Billing address</h2>
      <p class="form-hint">This is the billing address of the bank account. This is not the address of the bank.</p>

      <div class="boxed extra-margin">
          <h3 class="heading-medium no-margin-top" th:unless="readonly">Confirm project location</h3>
          <p th:if="${bankDetails?.organisationAddress.address}" >
            <th:block th:each="addressLine : ${bankDetails?.organisationAddress.address.getNonEmptyLines()}">
                <span th:text="${addressLine}" th:remove="tag">An address line</span><br />
            </th:block>
          </p>
      </div>

    </div>

    <div th:include="fragments/modals :: modal-bank-details" th:remove="tag" />
    <button th:attr="formaction=@{/project/{id}/bank-details/confirm(id=${project.id})}" th:unless="${readonly}" class="button extra-margin" data-js-modal="modal-bank">Submit bank account details</button>

	</form>

    <div th:include="fragments/layout :: main-content-end" th:remove="tag" />
</main>

<div th:include="fragments/layout :: footer" th:remove="tag" />
<div th:include="fragments/layout :: body-end" th:remove="tag" />
</body>
</html>

{'fraction_non_alphanumeric': 0.19071673656118948, 'fraction_numerical': 0.009149828440716736, 'mean_word_length': 4.2465, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '6277373', 'n_tokens_mistral': 3350, 'n_tokens_neox': 3231, 'n_words': 675}