Skip to content

Commit

Permalink
add form to error prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Nov 9, 2023
1 parent 3dc8a86 commit e0d28f5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
46 changes: 23 additions & 23 deletions src/layout/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<div class="ons-page__container ons-container{{ containerClasses }}">
Expand Down
14 changes: 7 additions & 7 deletions src/patterns/correct-errors/example-errors-proto.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ layout: ~
}}
{% endblock %}

{% set form = {
"method": "GET",
"attributes": {
"action": "example-errors-proto-errors",
"novalidate": ""
}
} %}
{% block bodyStart %}
<form method="GET" action="example-errors-proto-errors" autocomplete="off" novalidate>
{% endblock %}

{% block main %}
{% call onsQuestion({
Expand Down Expand Up @@ -371,3 +367,7 @@ layout: ~
}}
{% endcall %}
{% endblock %}

{% block bodyEnd %}
</form>
{% endblock %}

0 comments on commit e0d28f5

Please sign in to comment.