generated from companieshouse/node-review-web-starter-ts
-
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.
Updated limited name registered with aml body screen to use the new n…
…jk template
- Loading branch information
1 parent
6e362f2
commit 706e448
Showing
5 changed files
with
62 additions
and
14 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
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
49 changes: 49 additions & 0 deletions
49
src/views/features/limited/name-registered-with-aml/name-registered-with-aml.njk
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,49 @@ | ||
{% from "govuk/components/radios/macro.njk" import govukRadios %} | ||
{% from "govuk/components/button/macro.njk" import govukButton %} | ||
|
||
{% extends "layouts/default.njk" %} | ||
{% set title = i18n.nameRegisteredWithAmlTitle %} | ||
{% block main_content %} | ||
<form action="" method="POST"> | ||
{{ govukRadios({ | ||
errorMessage: errors.nameRegisteredWithAml if errors, | ||
classes: "govuk-radios", | ||
id: "name-registered-with-aml-radios", | ||
name: "nameRegisteredWithAml", | ||
fieldset: { | ||
legend: { | ||
text: i18n.nameRegisteredWithAmlTitle, | ||
isPageHeading: true, | ||
classes: "govuk-fieldset__legend--l" | ||
} | ||
}, | ||
hint: { | ||
text: i18n.nameRegisteredWithAmlBody | ||
}, | ||
value: nameRegisteredWithAml, | ||
items: [ | ||
{ | ||
value: "NAME_OF_THE_BUSINESS", | ||
text: businessName, | ||
id:"name-of-the-business-option-id" | ||
}, | ||
{ | ||
value: "A_DIFFERENT_NAME", | ||
text: i18n.nameRegisteredWithAmlDifferentNameOption, | ||
id:"different-name-option-id" | ||
} | ||
] | ||
}) }} | ||
{{ govukButton({ | ||
text: i18n.SaveAndContinue, | ||
id:"save-continue-button" | ||
}) }} | ||
</form> | ||
|
||
<script> | ||
trackEventBasedOnPageTitle("name-of-the-business-option-id", "{{title}}", "select-option", "name-of-the-business"); | ||
trackEventBasedOnPageTitle("different-name-option-id", "{{title}}", "select-option", "different-name"); | ||
trackEventBasedOnPageTitle("save-continue-button", "{{title}}", "click-button", "SAVE AND CONTINUE - Name registered with AML"); | ||
</script> | ||
|
||
{% endblock main_content %} |
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