{% extends baseLayoutPath %} {% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %} {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %} {% from "govuk/components/button/macro.njk" import govukButton %} {% from "govuk/components/notification-banner/macro.njk" import govukNotificationBanner %} {% from "partials/components.html" import componentList with context %} {% from "govuk/components/input/macro.njk" import govukInput %} {% block content %}
{% if previewMode %} {% include "partials/preview-banner.html" %} {% endif %} {% if paymentState and paymentState.preAuth and paymentState.preAuth.status == 'success' %} {{ govukNotificationBanner({ type: "success", titleText: "Success", html: "

We have your payment details

Your payment is on hold. We will charge you when you submit the form.

" }) }} {% endif %} {% if errors %} {{ govukErrorSummary({ titleText: "There is a problem", errorList: checkErrorTemplates(errors) }) }} {% endif %} {% if hasMissingNotificationEmail %} {% include "partials/warn-missing-notification-email.html" %} {% endif %}

{{ pageTitle }}

{% for section in checkAnswers %} {% if section.title.text %}

{{ section.title.text }}

{{ govukSummaryList(section.summaryList) }} {% else %}
{{ govukSummaryList(section.summaryList) }}
{% endif %} {% endfor %} {% if paymentDetails %}

{{ paymentDetails.title.text }}

{{ govukSummaryList(paymentDetails.summaryList) }} {% endif %}
{% block customPageContent %}{% endblock %} {{ componentList(components) }} {% if declaration %}

Declaration

{{ declaration | safe }}
{% endif %}
{% set isDeclaration = declaration or components | length %} {{ govukButton({ text: "Accept and submit" if isDeclaration else "Submit", name: "action", value: "send", preventDoubleClick: true }) }} {% if allowSaveAndExit %} {{ govukButton({ text: "Save and exit", classes: "govuk-button--secondary", name: "action", value: "save-and-exit", preventDoubleClick: true }) }} {% endif %}
{% if config.cdpEnvironment == 'local' and context | length and not context.isForceAccess %} {% include "partials/debug.html" %} {% endif %} {% endblock %}