{% 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 "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 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 }}

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

Declaration

{{ declaration | safe }}
{% endif %}
{% set isDeclaration = declaration or components | length %} {{ govukButton({ text: "Accept and send" if isDeclaration else "Send", 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 %}