<commit_before>
<!-- =================== Comp setup section - Application questions (5) ============================== -->
<th:block th:fragment="section-content">
    <div class="error-summary" th:attr="aria-hidden=${!#fields.hasErrors('${competitionSetupForm.*}')}">
        <h2 class="heading-medium error-summary-heading">Unable to mark as complete.</h2>
        <ul class="error-summary-list">
            <li>view the application section(s) to resolve the error.</li>
        </ul>
    </div>
    <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Application process',size='heading-xlarge'" />

    <form th:action="@{${#ifsUtil.formPostUri(#httpServletRequest)}}" method="post" th:object="${competitionSetupForm}" novalidate="novalidate">
        <h2 class="heading-medium extra-margin" th:text="${model.general.competition.competitionTypeName+' competition questions'}" />

        <p>You can review and amend the application and assessment questions and guidance for this competition. You can also edit the finances section to update funding rules. Any changes you make will be applied to this competition, but will not affect the default template for this competition type.</p>

        <!--/* TODO IFS-743 This line of content needs removing */-->
        <p>Once you are happy with the questions, funding rules and guidance, mark this section as done and continue.</p>

        <h3 class="heading-small">Application details</h3>
        <ul class="task-list">
            <li>
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/detail(competitionId=${model.general.competition.id})}">Application details</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
            <li th:each="question : ${model.projectDetails}">
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/{questionId}(competitionId=${model.general.competition.id}, questionId=${question.id})}" th:text="${question.shortName}">Question Title</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>

        <h3 class="heading-small">Assessed questions</h3>
        <ul class="task-list">
            <li th:each="question : ${model.questions}">
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/{questionId}(competitionId=${model.general.competition.id}, questionId=${question.id})}">
                            <th:block th:text="${question.questionNumber} + '. '"></th:block>
                            <th:block th:text="${#strings.isEmpty(question.shortName)} ? #{ifs.application.question.no_heading} : ${question.shortName}"></th:block>

                        </a>
                    </h4>
                </div>
                <th:form>
                    <button type="submit" th:value="${question.id}" name="deleteQuestion">Delete Question</button>
                </th:form>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>
        <th:form>
            <button type="submit" name="createQuestion">Create Question</button>
        </th:form>

        <h3 class="heading-small no-margin">Finances</h3>
        <ul class="task-list">
            <li>
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/finance(competitionId=${model.general.competition.id})}">Finances</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>

        <div class="grid-row">
            <div class="column-full extra-margin">
                <button th:if="${model.general.editable}" class="button">Done</button>
            </div>
        </div>

        <ul class="pagination">
            <li class="prev">
                <a rel="prev" title="Navigate to prev part" th:href="@{/competition/setup/{competitionId}/section/{sectionPath}(competitionId=${model.general.competition.id},sectionPath='milestones')}">
                    <span class="pagination-label">Previous</span>
                    <span class="pagination-part-title">Milestones</span>
                </a>
            </li>
            <li class="next">
                <a rel="next" title="Navigate to next part" th:href="@{/competition/setup/{competitionId}/section/{sectionPath}(competitionId=${model.general.competition.id},sectionPath='assessors')}">
                    <span class="pagination-label">Next</span>
                    <span class="pagination-part-title">Assessors</span>
                </a>
            </li>
        </ul>
    </form>
</th:block>
<commit_msg>IFS-182 Add styling to buttons<commit_after>
<!-- =================== Comp setup section - Application questions (5) ============================== -->
<th:block th:fragment="section-content">
    <div class="error-summary" th:attr="aria-hidden=${!#fields.hasErrors('${competitionSetupForm.*}')}">
        <h2 class="heading-medium error-summary-heading">Unable to mark as complete.</h2>
        <ul class="error-summary-list">
            <li>view the application section(s) to resolve the error.</li>
        </ul>
    </div>
    <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Application process',size='heading-xlarge'" />

    <form th:action="@{${#ifsUtil.formPostUri(#httpServletRequest)}}" method="post" th:object="${competitionSetupForm}" novalidate="novalidate">
        <h2 class="heading-medium extra-margin" th:text="${model.general.competition.competitionTypeName+' competition questions'}" />

        <p>You can review and amend the application and assessment questions and guidance for this competition. You can also edit the finances section to update funding rules. Any changes you make will be applied to this competition, but will not affect the default template for this competition type.</p>

        <!--/* TODO IFS-743 This line of content needs removing */-->
        <p>Once you are happy with the questions, funding rules and guidance, mark this section as done and continue.</p>

        <h3 class="heading-small">Application details</h3>
        <ul class="task-list">
            <li>
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/detail(competitionId=${model.general.competition.id})}">Application details</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
            <li th:each="question : ${model.projectDetails}">
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/{questionId}(competitionId=${model.general.competition.id}, questionId=${question.id})}" th:text="${question.shortName}">Question Title</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>

        <h3 class="heading-small">Assessed questions</h3>
        <ul class="task-list no-margin-bottom">
            <li th:each="question, iteration : ${model.questions}">
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/{questionId}(competitionId=${model.general.competition.id}, questionId=${question.id})}">
                            <th:block th:text="${question.questionNumber} + '. '"></th:block>
                            <th:block th:text="${#strings.isEmpty(question.shortName)} ? #{ifs.application.question.no_heading} : ${question.shortName}"></th:block>

                        </a>
                    </h4>
                </div>
                <div th:unless="${iteration.index == 0}" class="task-status">
                    <th:form>
                        <button type="submit" th:value="${question.id}" name="deleteQuestion" class="buttonlink no-margin">Remove</button>
                    </th:form>
                </div>

                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>
        <th:form>
            <p>
                <button type="submit" name="createQuestion" class="buttonlink">Add Question</button>
            </p>
        </th:form>

        <h3 class="heading-small">Finances</h3>
        <ul class="task-list">
            <li>
                <div class="task">
                    <h4 class="heading-small">
                        <a th:href="@{/competition/setup/{competitionId}/section/application/question/finance(competitionId=${model.general.competition.id})}">Finances</a>
                    </h4>
                </div>
                <!--/* TODO IFS-743 This markup will be required for showing the status of this task in ifs-743 */-->
                <!--/*<div class="task-status-complete"><span>Complete</span></div>*/-->
            </li>
        </ul>

        <div class="grid-row">
            <div class="column-full extra-margin">
                <button th:if="${model.general.editable}" class="button">Done</button>
            </div>
        </div>

        <ul class="pagination">
            <li class="prev">
                <a rel="prev" title="Navigate to prev part" th:href="@{/competition/setup/{competitionId}/section/{sectionPath}(competitionId=${model.general.competition.id},sectionPath='milestones')}">
                    <span class="pagination-label">Previous</span>
                    <span class="pagination-part-title">Milestones</span>
                </a>
            </li>
            <li class="next">
                <a rel="next" title="Navigate to next part" th:href="@{/competition/setup/{competitionId}/section/{sectionPath}(competitionId=${model.general.competition.id},sectionPath='assessors')}">
                    <span class="pagination-label">Next</span>
                    <span class="pagination-part-title">Assessors</span>
                </a>
            </li>
        </ul>
    </form>
</th:block>

{'fraction_non_alphanumeric': 0.16891545687446627, 'fraction_numerical': 0.007514944491887276, 'mean_word_length': 2.1737127371273712, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, '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': '1380210', 'n_tokens_mistral': 3217, 'n_tokens_neox': 3061, 'n_words': 660}