{% extends baseLayoutPath %}
{% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %}
{% from "partials/components.html" import componentList with context %}
{% 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 %}
{% include "partials/heading.html" %}
{% block form %}
{% if page.allowContinue %}
{% include "partials/form.html" %}
{% else %}
{{ componentList(components) }}
{% endif %}
{% endblock %}
{% if config.cdpEnvironment == 'local' and context | length and not context.isForceAccess %}
{% include "partials/debug.html" %}
{% endif %}
{% endblock %}