Skip to content

Commit 7cc58e3

Browse files
committed
moved to gas test kit and merge changes
1 parent 92dbfde commit 7cc58e3

1 file changed

Lines changed: 119 additions & 4 deletions

File tree

runner/src/server/forms/order-a-radon-home-test-kit.json

Lines changed: 119 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,12 @@
522522
},
523523
{
524524
"name": "eWdxvJ",
525-
"options": {"hideTitle": true},
525+
"options": {
526+
"hideTitle": true,
527+
"customValidationMessages": {
528+
"any.required": "Select Yes if this is is the address you want your radon gas test results to"
529+
}
530+
},
526531
"type": "YesNoField",
527532
"title": "Is this the address you want your radon gas test results to?"
528533
},
@@ -553,10 +558,10 @@
553558
"title": "Review your order",
554559
"components": [
555560
{
556-
"name": "MMdxVl",
561+
"name": "MMdxVt",
557562
"options": {},
558563
"type": "Para",
559-
"content": "<table class=\"govuk-table\"><caption class=\"govuk-table__caption govuk-table__caption--m\">Order Summary</caption><tbody class=\"govuk-table__body\"><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\"><b>Which type of test kit do you need?</b></th><td class=\"govuk-table__cell\">Home radon gas test kit</td><td class=\"govuk-table__cell\"></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\"><b>Total</b></th><td class=\"govuk-table__cell\">£52.80 (icluding VAT)</td><td class=\"govuk-table__cell\"></td></tr></tbody></table>"
564+
"content": "<table class=\"govuk-table\"><caption class=\"govuk-table__caption govuk-table__caption--m\">Order Summary</caption><tbody class=\"govuk-table__body\"><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\"><b>Which type of test kit do you need?</b></th><td class=\"govuk-table__cell\">Home radon gas test kit</td><td class=\"govuk-table__cell\"></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\"><b>Total</b></th><td class=\"govuk-table__cell\"><b>£52.80 (including VAT)</b></td><td class=\"govuk-table__cell\"></td></tr></tbody></table>"
560565
},
561566
{
562567
"name": "linebreaks",
@@ -568,7 +573,7 @@
568573
"name": "MMdxVl",
569574
"options": {},
570575
"type": "Para",
571-
"content": "<table class=\"govuk-table\"><caption class=\"govuk-table__caption govuk-table__caption--m\">Contact Information</caption><tbody class=\"govuk-table__body\"><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Title</th><td class=\"govuk-table__cell\">{{ Title }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Initials</th><td class=\"govuk-table__cell\">{{ Initials }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Last name</th><td class=\"govuk-table__cell\">{{ LastName }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Email</th><td class=\"govuk-table__cell\">{{ EmailAddress }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Property address</th><td class=\"govuk-table__cell\">{{ PropertyAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Delivery recipient</th><td class=\"govuk-table__cell\">{{ DeliveryRecipient }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Delivery address</th><td class=\"govuk-table__cell\">{{ DeliveryAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Results recipient</th><td class=\"govuk-table__cell\">{{ ResultsRecipient }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Results address</th><td class=\"govuk-table__cell\">{{ ResultsAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr></tbody></table>"
576+
"content": "<table class=\"govuk-table\"><caption class=\"govuk-table__caption govuk-table__caption--m\">Contact Information</caption><tbody class=\"govuk-table__body\"><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Title</th><td class=\"govuk-table__cell\">{{ Title }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Initials</th><td class=\"govuk-table__cell\">{{ Initials }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Last name</th><td class=\"govuk-table__cell\">{{ LastName }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Email Address</th><td class=\"govuk-table__cell\">{{ EmailAddress }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Property address</th><td class=\"govuk-table__cell\">{{ PropertyAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Delivery recipient</th><td class=\"govuk-table__cell\">{{ DeliveryRecipient }}</td><td class=\"govuk-table__cell\"><a href=\"/gas-test-kit/enter-details\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Delivery address</th><td class=\"govuk-table__cell\">{{ DeliveryAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Results recipient</th><td class=\"govuk-table__cell\">{{ ResultsRecipient }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr><tr class=\"govuk-table__row\"><th scope=\"row\" class=\"govuk-table__header\">Results address</th><td class=\"govuk-table__cell\">{{ ResultsAddress }}</td><td class=\"govuk-table__cell\"><a href=\"google.com\" \"target\"=\"_blank\">Change</a></td></tr></tbody></table>"
572577
},
573578

574579
{
@@ -584,6 +589,116 @@
584589
}
585590

586591
}
592+
},
593+
{
594+
"path": "/who-is-the-recipient-of-radon-gas-test-results",
595+
"title": "Who is the recipient of radon gas test results",
596+
"components": [
597+
{
598+
"name": "Title",
599+
"options": {
600+
"exposeToContext": true,
601+
"customValidationMessages":{
602+
"string.empty": "Enter the title of the recipient of the radon gas test results"
603+
}
604+
},
605+
"type": "TextField",
606+
"title": "Title",
607+
"hint": "e.g. Mr, Mrs, Dr"
608+
},
609+
{
610+
"name": "Initials",
611+
"options": {
612+
"customValidationMessages":{
613+
"string.empty": "Enter the initials of the recipient of the radon gas test results"
614+
},
615+
"exposeToContext": true
616+
},
617+
"type": "TextField",
618+
"title": "Initials"
619+
},
620+
{
621+
"name": "LastName",
622+
"options": {
623+
"customValidationMessages":{
624+
"string.empty": "Enter the last name of the recipient of the radon gas test results"
625+
},
626+
"exposeToContext": true
627+
},
628+
"type": "TextField",
629+
"title": "Last Name"
630+
}
631+
],
632+
"next": [{"path": "/gas-test-kit-enter-results-address-manually"}]
633+
},
634+
{
635+
"path": "/gas-test-kit-enter-results-address-manually",
636+
"title": "What address do you want your radon gas test results to be delivered to?",
637+
"components": [
638+
{
639+
"name": "Address Line 1",
640+
"options": {
641+
"customValidationMessages":{
642+
"string.empty": "Enter address line 1, typically the building and street"
643+
},
644+
"exposeToContext": true
645+
},
646+
"type": "TextField",
647+
"title": "Address Line 1"
648+
},
649+
{
650+
"name": "Address Line 2",
651+
"options": {
652+
"required": false,
653+
"exposeToContext": true
654+
},
655+
"type": "TextField",
656+
"title": "Address Line 2"
657+
},
658+
{
659+
"name": "Town or city",
660+
"options": {
661+
"customValidationMessages":{
662+
"string.empty": "Enter town or city"
663+
},
664+
"exposeToContext": true
665+
},
666+
"type": "TextField",
667+
"title": "Town or city"
668+
},
669+
{
670+
"name": "County",
671+
"options": {
672+
"required": false,
673+
"exposeToContext": true
674+
},
675+
"type": "TextField",
676+
"title": "County"
677+
},
678+
{
679+
"name": "postcodeLookup",
680+
"options": {
681+
"customValidationMessages": {
682+
"string.empty": "Enter postcode",
683+
"string.pattern.base": "Enter a full UK postcode",
684+
"string.max": "Postcode must be less than 10 characters"
685+
},
686+
"autocomplete": "postal-code",
687+
"exposeToContext": true,
688+
"format": {
689+
"trim": true,
690+
"case": "upper"
691+
}
692+
},
693+
"schema": {
694+
"max": 10,
695+
"regex": "^[\\s]*[A-z]{1,2}[0-9][A-z0-9]?[\\s]*[0-9]{1,2}[ABD-hJLNP-uW-z]{2}[\\s]*$"
696+
},
697+
"type": "TextField",
698+
"title": "Postcode"
699+
}
700+
],
701+
"next": [{"path": "/gas-test-kit-check-your-answers"}]
587702
}
588703
],
589704
"next": [{"path": "/payment"}]

0 commit comments

Comments
 (0)