-
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.
- add fields in fields/index.js, fields.json, page.json, validation.json - add step in summary-data-sections.js - defined steps in index.js
- Loading branch information
1 parent
f493bc5
commit 7f78864
Showing
6 changed files
with
83 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
const title = require('../../../utilities/constants/titles.js'); | ||
module.exports = { | ||
|
||
'amend-name-title': { | ||
mixin: 'select', | ||
validate: ['required'], | ||
labelClassName: 'govuk-label--s', | ||
className: ['govuk-input--width-2'], | ||
options: [{ | ||
value: '', | ||
label: 'fields.amend-name-title.options.none_selected' | ||
}].concat(title) | ||
}, | ||
'amend-firstname': { | ||
validate: ['required', 'notUrl', { type: 'maxlength', arguments: [250] }], | ||
labelClassName: 'govuk-label--s', | ||
className: ['govuk-input', 'govuk-!-width-two-thirds'] | ||
}, | ||
'amend-middlename': { | ||
validate: [{ type: 'maxlength', arguments: [250] }], | ||
labelClassName: 'govuk-label--s', | ||
className: ['govuk-input', 'govuk-!-width-two-thirds'] | ||
}, | ||
'amend-lastname': { | ||
validate: ['required', 'notUrl', { type: 'maxlength', arguments: [250] }], | ||
labelClassName: 'govuk-label--s', | ||
className: ['govuk-input', 'govuk-!-width-two-thirds'] | ||
} | ||
}; |
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
'Licence details': { | ||
steps: [ | ||
{ | ||
step: '/amend-licence-number', | ||
field: 'amend-licence-number' | ||
} | ||
] | ||
}, | ||
'Applicant name': { | ||
steps: [ | ||
{ | ||
step: '/amend-name-on-licence', | ||
fields: ['amend-name-title', 'amend-firstname', 'amend-middlename', 'amend-lastname'] | ||
} | ||
] | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,17 @@ | ||
{ | ||
|
||
"amend-name-title": { | ||
"label": "Title", | ||
"options": { | ||
"none_selected": "Select" | ||
} | ||
}, | ||
"amend-firstname": { | ||
"label": "First name" | ||
}, | ||
"amend-middlename": { | ||
"label": "Middle names (optional)" | ||
}, | ||
"amend-lastname": { | ||
"label": "Last name" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"application-submitted": { | ||
"amend-name-on-licence": { | ||
"header": "What is your name on the licence?" | ||
}, | ||
|
||
"application-submitted": { | ||
"confirmed": "Amendment submitted" | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,16 @@ | ||
{} | ||
{ | ||
"amend-name-title" : { | ||
"required" : "Select your title" | ||
}, | ||
"amend-firstname" : { | ||
"required" : "Enter your first name", | ||
"maxlength" : "First name must between 1 and 250 characters" | ||
}, | ||
"amend-middlename" :{ | ||
"maxlength" : "Middle names must be between 250 characters or less" | ||
}, | ||
"amend-lastname" : { | ||
"required" : "Enter your last name", | ||
"maxlength" : "Last name must be between 1 and 250 characters" | ||
} | ||
} |