From e0d28f58ef2de95c0a5f9bff65bd75442755eb7f Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Thu, 9 Nov 2023 09:33:00 +0000 Subject: [PATCH] add form to error prototype --- src/layout/_template.njk | 46 +++++++++---------- .../correct-errors/example-errors-proto.njk | 14 +++--- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/layout/_template.njk b/src/layout/_template.njk index b5ca6fda6b..6cccfb5753 100644 --- a/src/layout/_template.njk +++ b/src/layout/_template.njk @@ -138,29 +138,29 @@ {% endblock %} {% block header %} {{ - onsHeader({ - "wide": pageConfig.wide, - "fullWidth": pageConfig.fullWidth, - "language": pageConfig.header.language, - "button": pageConfig.header.signoutButton, - "toggleNavigationButton": pageConfig.header.toggleNavigationButton, - "navigation": pageConfig.header.navigation, - "siteSearchAutosuggest": pageConfig.header.siteSearchAutosuggest, - "browserBanner": pageConfig.header.browserBanner, - "phase": pageConfig.header.phase, - "assetsURL": assetsURL, - "serviceLinks": pageConfig.header.serviceLinks, - "variants": pageConfig.header.variants, - "classes": pageConfig.header.classes, - "mastheadLogo": pageConfig.header.mastheadLogo, - "mastheadLogoUrl": pageConfig.header.mastheadLogoUrl, - "titleUrl": pageConfig.header.titleUrl, - "title": pageConfig.header.title | default(pageConfig.title), - "description": pageConfig.header.description, - "titleAsH1": pageConfig.header.titleAsH1, - "titleLogo": pageConfig.header.titleLogo - }) - }} + onsHeader({ + "wide": pageConfig.wide, + "fullWidth": pageConfig.fullWidth, + "language": pageConfig.header.language, + "button": pageConfig.header.signoutButton, + "toggleNavigationButton": pageConfig.header.toggleNavigationButton, + "navigation": pageConfig.header.navigation, + "siteSearchAutosuggest": pageConfig.header.siteSearchAutosuggest, + "browserBanner": pageConfig.header.browserBanner, + "phase": pageConfig.header.phase, + "assetsURL": assetsURL, + "serviceLinks": pageConfig.header.serviceLinks, + "variants": pageConfig.header.variants, + "classes": pageConfig.header.classes, + "mastheadLogo": pageConfig.header.mastheadLogo, + "mastheadLogoUrl": pageConfig.header.mastheadLogoUrl, + "titleUrl": pageConfig.header.titleUrl, + "title": pageConfig.header.title | default(pageConfig.title), + "description": pageConfig.header.description, + "titleAsH1": pageConfig.header.titleAsH1, + "titleLogo": pageConfig.header.titleLogo + }) + }} {% endblock %} {% block pageContent %}
diff --git a/src/patterns/correct-errors/example-errors-proto.njk b/src/patterns/correct-errors/example-errors-proto.njk index 1b5ec4c2b9..191fad8f2f 100644 --- a/src/patterns/correct-errors/example-errors-proto.njk +++ b/src/patterns/correct-errors/example-errors-proto.njk @@ -39,13 +39,9 @@ layout: ~ }} {% endblock %} -{% set form = { - "method": "GET", - "attributes": { - "action": "example-errors-proto-errors", - "novalidate": "" - } -} %} +{% block bodyStart %} +
+{% endblock %} {% block main %} {% call onsQuestion({ @@ -371,3 +367,7 @@ layout: ~ }} {% endcall %} {% endblock %} + +{% block bodyEnd %} +
+{% endblock %}