generated from DEFRA/ffc-template-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AHWR-460): Update Species Selection Page (#421)
- Loading branch information
1 parent
f2913e0
commit 8ff0238
Showing
4 changed files
with
126 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{% extends './layouts/layout.njk' %} | ||
|
||
{% block pageTitle %}Which species are you claiming for? - {{ serviceName }} - GOV.UK{% endblock %} | ||
|
||
{% block beforeContent %} | ||
{{ govukBackLink({ | ||
text: "Back", | ||
href: backLink | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-grid-row govuk-width-container govuk-!-static-margin-top-0"> | ||
<div class="govuk-grid-column-two-thirds govuk-!-static-padding-0"> | ||
{% if errorMessage %} | ||
{{ govukErrorSummary({ | ||
titleText: "There is a problem", | ||
errorList:[{ | ||
text: errorMessage.text, | ||
href: "#typeOfLivestock" | ||
}] | ||
}) }} | ||
{% endif %} | ||
<h1 class="govuk-heading-l">Which species are you claiming for?</h1> | ||
|
||
<form method="POST" autocomplete="off" novalidate="novalidate"> | ||
<input type="hidden" name="crumb" value="{{crumb}}"/> | ||
|
||
{{ govukRadios({ | ||
id: "typeOfLivestock", | ||
name: "typeOfLivestock", | ||
errorMessage: errorMessage, | ||
items: [ | ||
{ | ||
value: "beef", | ||
text: "Beef cattle", | ||
checked: previousAnswer === "beef" | ||
}, | ||
{ | ||
value: "dairy", | ||
text: "Dairy cattle", | ||
checked: previousAnswer === "dairy" | ||
}, | ||
{ | ||
value: "pigs", | ||
text: "Pigs", | ||
checked: previousAnswer === "pigs" | ||
}, | ||
{ | ||
value: "sheep", | ||
text: "Sheep", | ||
checked: previousAnswer === "sheep" | ||
} | ||
] | ||
}) | ||
}} | ||
{{ govukButton({ | ||
text: "Continue", | ||
attributes: {id: "btnContinue"}, | ||
preventDoubleClick: true | ||
}) | ||
}} | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters