<commit_before><!DOCTYPE html>
<html  class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Application Summary'"  th:remove="tag" />
</head>
<body class="app-summary">
<div th:include="fragments/modals :: modal-overlay" th:remove="tag" />
<div th:include="fragments/modals :: modal-confirm-submit" th:remove="tag" />


<div th:include="fragments/layout :: body-start" th:remove="tag" />
<div th:include="fragments/layout :: global-header" 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="currentApplication=${currentApplication}" th:remove="tag" />

    <a class="back" th:href="@{/application-form/{id}/section/1(id=${currentApplication.getId()})}">&lt; Back to application</a>
    
    <h1 class="heading-xlarge">Application Summary</h1>
    <p class="subtitle">
        Please review your application before final submission. Any section where there are errors or problems with the content have been highlighted in red.
    </p>

    <div class="collapsible section-overview">
        <div th:remove="tag" th:each="section : ${sections.values()}" th:unless='${section.name.equals("Finances")}'>
            <h2 th:text="${section.getName()}" th:class="((${section.getId()} == ${currentSectionId}) ? 'open':'') +' '+ ((${completedSections.contains(section.getId())}) ? 'section-completed':'')+' '+ ((${incompletedSections.contains(section.getId())}) ? 'section-incomplete':'')" />
                <div class="question" th:each="question : ${section.getQuestions()}" th:if='${question.getName() != ""}' th:with="readonly=true, response=(${responses.get(question.getId())})" th:id="'question-'+${question.getId()}" >
                    <div th:replace="question-type/types :: ${question.getQuestionType().getTitle()}" th:unless='${question.getQuestionType().getTitle().equals("finance"}' th:with="$question=(${question}), $currentApplication=(${currentApplication}), $response=(${response}), $section=(${section}), $readonly=${readonly}" />
                </div>
        </div>
        <h2>Finances Summary</h2>
        <div class="question">
            <p>This is the overview of the finances provided by all partners in this project.</p>
            <p>To make changes to your organisations' finances, go back to the <a th:href='${"/application-form/"+currentApplication.id+"/section/7/"}'>your finances</a> section.</p>

            <div th:replace="question-type/types :: application_finances_summary"></div>
            <h2 class="heading-medium">Funding breakdown</h2>
            <div th:include="question-type/types :: financial_summary_table" th:remove="tag"/>
        </div>

    </div>
    <hr/>
    <div>
        <span class="icon icon-information"></span>
        <span> You will not be able to make changes to your application or resubmit after this point. By submitting this application you are agreeing to Innovate UK's <a href="">terms and conditions</a>.</span>
    </div>

    <div class="alignright-button">
        <a role="button" tabindex="0" class="button large" data-js-modal="modal-confirm-submit" th:href="@{/application/{id}/confirm-submit(id=${currentApplication.getId()})}" th:if="${incompletedSections.size() == 0}">Submit application</a>
        <button disabled="disabled" class="button" th:unless="${incompletedSections.size() == 0}">Submit application</button>
    </div>

    <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" /><commit_msg>INFUND-491 on character too much<commit_after><!DOCTYPE html>
<html  class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Application Summary'"  th:remove="tag" />
</head>
<body class="app-summary">
<div th:include="fragments/modals :: modal-overlay" th:remove="tag" />
<div th:include="fragments/modals :: modal-confirm-submit" th:remove="tag" />


<div th:include="fragments/layout :: body-start" th:remove="tag" />
<div th:include="fragments/layout :: global-header" 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="currentApplication=${currentApplication}" th:remove="tag" />

    <a class="back" th:href="@{/application-form/{id}/section/1(id=${currentApplication.getId()})}">&lt; Back to application</a>
    
    <h1 class="heading-xlarge">Application Summary</h1>
    <p class="subtitle">
        Please review your application before final submission. Any section where there are errors or problems with the content have been highlighted in red.
    </p>

    <div class="collapsible section-overview">
        <div th:remove="tag" th:each="section : ${sections.values()}" th:unless='${section.name.equals("Finances")}'>
            <span class="section-status complete" th:if="${completedSections.contains(section.getId())}"><span class="visuallyhidden">-</span> Complete</span>

            <h2 th:text="${section.getName()}" th:class="((${section.getId()} == ${currentSectionId}) ? 'open':'') +
                    ' '+ ((${completedSections.contains(section.getId())}) ? 'section-complete':'')+
                    ' '+ ((${incompletedSections.contains(section.getId())}) ? 'section-incomplete':'')" />
                <div class="question" th:each="question : ${section.getQuestions()}" th:if='${question.getName() != ""}' th:with="readonly=true, response=(${responses.get(question.getId())})" th:id="'question-'+${question.getId()}" >
                    <div th:replace="question-type/types :: ${question.getQuestionType().getTitle()}" th:unless='${question.getQuestionType().getTitle().equals("finance"}' th:with="$question=(${question}), $currentApplication=(${currentApplication}), $response=(${response}), $section=(${section}), $readonly=${readonly}" />
                </div>
        </div>
        <h2>Finances Summary</h2>
        <div class="question">
            <p>This is the overview of the finances provided by all partners in this project.</p>
            <p>To make changes to your organisations' finances, go back to the <a th:href='${"/application-form/"+currentApplication.id+"/section/7/"}'>your finances</a> section.</p>

            <div th:replace="question-type/types :: application_finances_summary"></div>
            <h2 class="heading-medium">Funding breakdown</h2>
            <div th:include="question-type/types :: financial_summary_table" th:remove="tag"/>
        </div>

    </div>
    <hr/>
    <div>
        <span class="icon icon-information"></span>
        <span> You will not be able to make changes to your application or resubmit after this point. By submitting this application you are agreeing to Innovate UK's <a href="">terms and conditions</a>.</span>
    </div>

    <div class="alignright-button">
        <a role="button" tabindex="0" class="button large" data-js-modal="modal-confirm-submit" th:href="@{/application/{id}/confirm-submit(id=${currentApplication.getId()})}" th:if="${incompletedSections.size() == 0}">Submit application</a>
        <button disabled="disabled" class="button" th:unless="${incompletedSections.size() == 0}">Submit application</button>
    </div>

    <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" />
{'fraction_non_alphanumeric': 0.19622543950361945, 'fraction_numerical': 0.004782833505687694, 'mean_word_length': 4.4371047083626145, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3523764', 'n_tokens_mistral': 2373, 'n_tokens_neox': 2286, 'n_words': 466}