Skip to content

Commit

Permalink
Update question page passport example
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave House committed Feb 12, 2018
1 parent fcee61c commit 9cdfd66
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/patterns/question-pages/passport.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ layout: layout-example.njk
{% from "input/macro.njk" import govukInput %}
{% from "date-input/macro.njk" import govukDateInput %}
{% from "button/macro.njk" import govukButton %}
{% from "fieldset/macro.njk" import govukFieldset %}

<div class="govuk-o-width-container">

Expand All @@ -20,14 +21,22 @@ layout: layout-example.njk

<form class="form" action="/url/of/next/page" method="post">

{{ govukInput({
label: {
"html": '<h3 class="govuk-heading-m govuk-!-mb-r1">Passport number</h3>',
"hintText": "For example, 502135326"
},
id: "passport-number",
name: "passport-number"
}) }}
{% call govukFieldset({
"legendHtml": '<h3 class="govuk-heading-m govuk-!-mb-r1">Passport number</h3>',
"legendHintText": 'For example, 502135326'
}) %}

{{ govukInput({
label: {
"html": 'Passport number',
"hintText": 'For example, 502135326',
"classes": 'govuk-h-visually-hidden'
},
id: "passport-number",
name: "passport-number"
}) }}

{% endcall %}


{{ govukDateInput({
Expand Down

0 comments on commit 9cdfd66

Please sign in to comment.