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: change view application page and status * feat: bump version * fix: tests * fix: content and test
- Loading branch information
1 parent
3bc5fce
commit 38d5eb9
Showing
14 changed files
with
117 additions
and
88 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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
const { formatedDateToUk } = require('../../lib/display-helper') | ||
const { formatedDateToUk, upperFirstLetter } = require('../../lib/display-helper') | ||
|
||
module.exports = (application) => { | ||
const { data } = application | ||
const formatedDate = formatedDateToUk(application.updatedAt) | ||
return { | ||
head: [{ text: 'Date' }, { text: 'Data requested' }, { text: 'Data entered' }], | ||
firstCellIsHeader: true, | ||
rows: [ | ||
[{ text: formatedDate }, { text: 'Details correct?' }, { text: data?.confirmCheckDetails }], | ||
[{ text: formatedDate }, { text: 'Date of review' }, { text: formatedDateToUk(data?.visitDate) }], | ||
[{ text: formatedDate }, { text: 'Vet’s name' }, { text: data?.vetName }], | ||
[{ text: formatedDate }, { text: 'Vet’s RCVS number' }, { text: data?.vetRcvs }], | ||
[{ text: formatedDate }, { text: 'Unique reference number (URN)' }, { text: data?.urnResult }] | ||
[{ text: 'Review details confirmed' }, { text: upperFirstLetter(data?.confirmCheckDetails) }], | ||
[{ text: 'Date of review' }, { text: formatedDateToUk(data?.visitDate) }], | ||
[{ text: 'Vet’s name' }, { text: data?.vetName }], | ||
[{ text: 'Vet’s RCVS number' }, { text: data?.vetRcvs }], | ||
[{ text: 'Unique reference number (URN)' }, { text: data?.urnResult }] | ||
] | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
"name": "My Farm", | ||
"email": "[email protected]", | ||
"isTest": true, | ||
"farmerName": "Farmer name", | ||
"address": "Long dusty road, Middle-of-knowhere, In the countryside, CC33 3CC" | ||
}, | ||
"eligibleSpecies": "yes", | ||
|
@@ -34,6 +35,7 @@ | |
"sbi": "333333333", | ||
"name": "My Farm", | ||
"email": "[email protected]", | ||
"farmerName": "Farmer name", | ||
"isTest": true, | ||
"address": "Long dusty road, Middle-of-knowhere, In the countryside, CC33 3CC" | ||
}, | ||
|
@@ -57,6 +59,7 @@ | |
"sbi": "333333333", | ||
"name": "My Farm", | ||
"email": "[email protected]", | ||
"farmerName": "Farmer name", | ||
"isTest": true, | ||
"address": "Long dusty road, Middle-of-knowhere, In the countryside, CC33 3CC" | ||
}, | ||
|
@@ -85,6 +88,7 @@ | |
"sbi": "333333333", | ||
"name": "My Farm", | ||
"email": "[email protected]", | ||
"farmerName": "Farmer name", | ||
"isTest": true, | ||
"address": "Long dusty road, Middle-of-knowhere, In the countryside, CC33 3CC" | ||
}, | ||
|
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
Oops, something went wrong.