Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8658 lines
309 KiB

{
"form_type": "lettings",
"start_date": "2022-04-01T00:00:00.000+01:00",
"end_date": "2023-08-09T00:00:00.000+01:00",
"unresolved_log_redirect_page_id": "tenancy_start_date",
"sections": {
"tenancy_and_property": {
"label": "Property and tenancy information",
"subsections": {
"property_information": {
"label": "Property information",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"property_postcode": {
"header": "",
"description": "",
"questions": {
"postcode_known": {
"check_answer_label": "Do you know the property postcode?",
"header": "Do you know the property’s postcode?",
"hint_text": "",
"type": "radio",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"answer_options": {
"1": {
"value": "Yes"
},
"0": {
"value": "No"
}
},
"conditional_for": {
"postcode_full": [
1
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"postcode_known": 0
},
{
"postcode_known": 1
}
]
}
},
"postcode_full": {
"check_answer_label": "Postcode",
"header": "What is the property’s postcode?",
"hint_text": "",
"type": "text",
"width": 5,
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"inferred_answers": {
"la": {
"is_la_inferred": true
}
},
"inferred_check_answers_value": [{
"condition": {
"postcode_known": 0
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"needstype": 1
}
]
},
"property_local_authority": {
"header": "",
"description": "",
"questions": {
"la": {
"check_answer_label": "Local Authority",
"header": "What is the local authority of the property?",
"hint_text": "",
"type": "select",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"answer_options": {
"": "Select an option",
"E07000223": "Adur",
"E07000026": "Allerdale",
"E07000032": "Amber Valley",
"E07000224": "Arun",
"E07000170": "Ashfield",
"E07000105": "Ashford",
"E07000200": "Babergh",
"E09000002": "Barking and Dagenham",
"E09000003": "Barnet",
"E08000016": "Barnsley",
"E07000027": "Barrow-in-Furness",
"E07000066": "Basildon",
"E07000084": "Basingstoke and Deane",
"E07000171": "Bassetlaw",
"E06000022": "Bath and North East Somerset",
"E06000055": "Bedford",
"E09000004": "Bexley",
"E08000025": "Birmingham",
"E07000129": "Blaby",
"E06000008": "Blackburn with Darwen",
"E06000009": "Blackpool",
"E07000033": "Bolsover",
"E08000001": "Bolton",
"E07000136": "Boston",
"E06000058": "Bournemouth, Christchurch and Poole",
"E06000036": "Bracknell Forest",
"E08000032": "Bradford",
"E07000067": "Braintree",
"E07000143": "Breckland",
"E09000005": "Brent",
"E07000068": "Brentwood",
"E06000043": "Brighton and Hove",
"E06000023": "Bristol, City of",
"E07000144": "Broadland",
"E09000006": "Bromley",
"E07000234": "Bromsgrove",
"E07000095": "Broxbourne",
"E07000172": "Broxtowe",
"E06000060": "Buckinghamshire",
"E07000117": "Burnley",
"E08000002": "Bury",
"E08000033": "Calderdale",
"E07000008": "Cambridge",
"E09000007": "Camden",
"E07000192": "Cannock Chase",
"E07000106": "Canterbury",
"E07000028": "Carlisle",
"E07000069": "Castle Point",
"E06000056": "Central Bedfordshire",
"E07000130": "Charnwood",
"E07000070": "Chelmsford",
"E07000078": "Cheltenham",
"E07000177": "Cherwell",
"E06000049": "Cheshire East",
"E06000050": "Cheshire West and Chester",
"E07000034": "Chesterfield",
"E07000225": "Chichester",
"E07000118": "Chorley",
"E09000001": "City of London",
"E07000071": "Colchester",
"E07000029": "Copeland",
"E06000052": "Cornwall",
"E07000079": "Cotswold",
"E06000047": "County Durham",
"E08000026": "Coventry",
"E07000163": "Craven",
"E07000226": "Crawley",
"E09000008": "Croydon",
"E07000096": "Dacorum",
"E06000005": "Darlington",
"E07000107": "Dartford",
"E06000015": "Derby",
"E07000035": "Derbyshire Dales",
"E08000017": "Doncaster",
"E06000059": "Dorset",
"E07000108": "Dover",
"E08000027": "Dudley",
"E09000009": "Ealing",
"E07000009": "East Cambridgeshire",
"E07000040": "East Devon",
"E07000085": "East Hampshire",
"E07000242": "East Hertfordshire",
"E07000137": "East Lindsey",
"E06000011": "East Riding of Yorkshire",
"E07000193": "East Staffordshire",
"E07000244": "East Suffolk",
"E07000061": "Eastbourne",
"E07000086": "Eastleigh",
"E07000030": "Eden",
"E07000207": "Elmbridge",
"E09000010": "Enfield",
"E07000072": "Epping Forest",
"E07000208": "Epsom and Ewell",
"E07000036": "Erewash",
"E07000041": "Exeter",
"E07000087": "Fareham",
"E07000010": "Fenland",
"E07000112": "Folkestone and Hythe",
"E07000080": "Forest of Dean",
"E07000119": "Fylde",
"E08000037": "Gateshead",
"E07000173": "Gedling",
"E07000081": "Gloucester",
"E07000088": "Gosport",
"E07000109": "Gravesham",
"E07000145": "Great Yarmouth",
"E09000011": "Greenwich",
"E07000209": "Guildford",
"W06000002": "Gwynedd",
"E09000012": "Hackney",
"E06000006": "Halton",
"E07000164": "Hambleton",
"E09000013": "Hammersmith and Fulham",
"E07000131": "Harborough",
"E09000014": "Haringey",
"E07000073": "Harlow",
"E07000165": "Harrogate",
"E09000015": "Harrow",
"E07000089": "Hart",
"E06000001": "Hartlepool",
"E07000062": "Hastings",
"E07000090": "Havant",
"E09000016": "Havering",
"E06000019": "Herefordshire, County of",
"E07000098": "Hertsmere",
"E07000037": "High Peak",
"S12000017": "Highland",
"E09000017": "Hillingdon",
"E07000132": "Hinckley and Bosworth",
"E07000227": "Horsham",
"E09000018": "Hounslow",
"E07000011": "Huntingdonshire",
"E07000120": "Hyndburn",
"E07000202": "Ipswich",
"E06000046": "Isle of Wight",
"E06000053": "Isles of Scilly",
"E09000019": "Islington",
"E09000020": "Kensington and Chelsea",
"E07000146": "King’s Lynn and West Norfolk",
"E06000010": "Kingston upon Hull, City of",
"E09000021": "Kingston upon Thames",
"E08000034": "Kirklees",
"E08000011": "Knowsley",
"E09000022": "Lambeth",
"E07000121": "Lancaster",
"E08000035": "Leeds",
"E06000016": "Leicester",
"E07000063": "Lewes",
"E09000023": "Lewisham",
"E07000194": "Lichfield",
"E07000138": "Lincoln",
"E08000012": "Liverpool",
"E06000032": "Luton",
"E07000110": "Maidstone",
"E07000074": "Maldon",
"E07000235": "Malvern Hills",
"E08000003": "Manchester",
"E07000174": "Mansfield",
"E06000035": "Medway",
"E07000133": "Melton",
"E07000187": "Mendip",
"E09000024": "Merton",
"E07000042": "Mid Devon",
"E07000203": "Mid Suffolk",
"E07000228": "Mid Sussex",
"E06000002": "Middlesbrough",
"E06000042": "Milton Keynes",
"E07000210": "Mole Valley",
"E07000091": "New Forest",
"E07000175": "Newark and Sherwood",
"E08000021": "Newcastle upon Tyne",
"E07000195": "Newcastle-under-Lyme",
"E09000025": "Newham",
"E07000043": "North Devon",
"E07000038": "North East Derbyshire",
"E06000012": "North East Lincolnshire",
"E07000099": "North Hertfordshire",
"E07000139": "North Kesteven",
"E06000013": "North Lincolnshire",
"E07000147": "North Norfolk",
"E06000061": "North Northamptonshire",
"E06000024": "North Somerset",
"E08000022": "North Tyneside",
"E07000218": "North Warwickshire",
"E07000134": "North West Leicestershire",
"E06000057": "Northumberland",
"E07000148": "Norwich",
"E06000018": "Nottingham",
"E07000219": "Nuneaton and Bedworth",
"E07000135": "Oadby and Wigston",
"E08000004": "Oldham",
"E07000178": "Oxford",
"E07000122": "Pendle",
"E06000031": "Peterborough",
"E06000026": "Plymouth",
"E06000044": "Portsmouth",
"E07000123": "Preston",
"E06000038": "Reading",
"E09000026": "Redbridge",
"E06000003": "Redcar and Cleveland",
"E07000236": "Redditch",
"E07000211": "Reigate and Banstead",
"E07000124": "Ribble Valley",
"E09000027": "Richmond upon Thames",
"E07000166": "Richmondshire",
"E08000005": "Rochdale",
"E07000075": "Rochford",
"E07000125": "Rossendale",
"E07000064": "Rother",
"E08000018": "Rotherham",
"E07000220": "Rugby",
"E07000212": "Runnymede",
"E07000176": "Rushcliffe",
"E07000092": "Rushmoor",
"E06000017": "Rutland",
"E07000167": "Ryedale",
"E08000006": "Salford",
"E08000028": "Sandwell",
"E07000168": "Scarborough",
"E07000188": "Sedgemoor",
"E08000014": "Sefton",
"E07000169": "Selby",
"E07000111": "Sevenoaks",
"E08000019": "Sheffield",
"E06000051": "Shropshire",
"E06000039": "Slough",
"E08000029": "Solihull",
"E07000246": "Somerset West and Taunton",
"E07000012": "South Cambridgeshire",
"E07000039": "South Derbyshire",
"E06000025": "South Gloucestershire",
"E07000044": "South Hams",
"E07000140": "South Holland",
"E07000141": "South Kesteven",
"E07000031": "South Lakeland",
"E07000149": "South Norfolk",
"E07000179": "South Oxfordshire",
"E07000126": "South Ribble",
"E07000189": "South Somerset",
"E07000196": "South Staffordshire",
"E08000023": "South Tyneside",
"E06000045": "Southampton",
"E06000033": "Southend-on-Sea",
"E09000028": "Southwark",
"E07000213": "Spelthorne",
"E07000240": "St Albans",
"E08000013": "St. Helens",
"E07000197": "Stafford",
"E07000198": "Staffordshire Moorlands",
"E07000243": "Stevenage",
"E08000007": "Stockport",
"E06000004": "Stockton-on-Tees",
"E06000021": "Stoke-on-Trent",
"E07000221": "Stratford-on-Avon",
"E07000082": "Stroud",
"E08000024": "Sunderland",
"E07000214": "Surrey Heath",
"E09000029": "Sutton",
"E07000113": "Swale",
"E06000030": "Swindon",
"E08000008": "Tameside",
"E07000199": "Tamworth",
"E07000215": "Tandridge",
"E07000045": "Teignbridge",
"E06000020": "Telford and Wrekin",
"E07000076": "Tendring",
"E07000093": "Test Valley",
"E07000083": "Tewkesbury",
"E07000114": "Thanet",
"E07000102": "Three Rivers",
"E06000034": "Thurrock",
"E07000115": "Tonbridge and Malling",
"E06000027": "Torbay",
"E07000046": "Torridge",
"E09000030": "Tower Hamlets",
"E08000009": "Trafford",
"E07000116": "Tunbridge Wells",
"E07000077": "Uttlesford",
"E07000180": "Vale of White Horse",
"E08000036": "Wakefield",
"E08000030": "Walsall",
"E09000031": "Waltham Forest",
"E09000032": "Wandsworth",
"E06000007": "Warrington",
"E07000222": "Warwick",
"E07000103": "Watford",
"E07000216": "Waverley",
"E07000065": "Wealden",
"E07000241": "Welwyn Hatfield",
"E06000037": "West Berkshire",
"E07000047": "West Devon",
"E07000127": "West Lancashire",
"E07000142": "West Lindsey",
"E06000062": "West Northamptonshire",
"E07000181": "West Oxfordshire",
"E07000245": "West Suffolk",
"E09000033": "Westminster",
"E08000010": "Wigan",
"E06000054": "Wiltshire",
"E07000094": "Winchester",
"E06000040": "Windsor and Maidenhead",
"E08000015": "Wirral",
"E07000217": "Woking",
"E06000041": "Wokingham",
"E08000031": "Wolverhampton",
"E07000237": "Worcester",
"E07000229": "Worthing",
"E07000238": "Wychavon",
"E07000128": "Wyre",
"E07000239": "Wyre Forest",
"E06000014": "York"
}
}
},
"depends_on": [
{
"is_la_inferred": false,
"needstype": 1
}
]
},
"first_time_property_let_as_social_housing": {
"header": "",
"description": "",
"questions": {
"first_time_property_let_as_social_housing": {
"check_answer_label": "First time being let as social-housing?",
"header": "Is this the first time the property has been let as social housing?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes",
"hint": "This is a new let."
},
"0": {
"value": "No",
"hint": "This is a re-let of existing social housing."
}
}
}
},
"depends_on": [
{
"renewal": 0
}
]
},
"property_let_type": {
"header": "",
"description": "",
"questions": {
"unitletas": {
"check_answer_label": "Most recent let type",
"header": "What type was the property most recently let as?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Social rent basis"
},
"2": {
"value": "Affordable rent basis"
},
"4": {
"value": "Intermediate rent basis"
},
"divider": {
"value": true
},
"3": {
"value": "Don’t know"
}
}
}
},
"depends_on": [
{
"first_time_property_let_as_social_housing": 0,
"renewal": 0,
"needstype": 1
}
]
},
"property_vacancy_reason_not_first_let": {
"header": "",
"description": "",
"questions": {
"rsnvac": {
"check_answer_label": "Vacancy reason",
"header": "What is the reason for the property being vacant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"13": {
"value": "Internal transfer",
"hint": "Excluding renewals of a fixed-term tenancy"
},
"5": {
"value": "Previous tenant died with no succession"
},
"9": {
"value": "Re-let to tenant who occupied same property as temporary accommodation"
},
"14": {
"value": "Renewal of fixed-term tenancy"
},
"19": {
"value": "Tenant involved in a succession downsize"
},
"8": {
"value": "Tenant moved to private sector or other accommodation"
},
"12": {
"value": "Tenant moved to other social housing provider"
},
"18": {
"value": "Tenant moved to care home"
},
"6": {
"value": "Tenant abandoned property"
},
"10": {
"value": "Tenant was evicted due to rent arrears"
},
"11": {
"value": "Tenant was evicted due to anti-social behaviour"
}
}
}
},
"depends_on": [
{
"first_time_property_let_as_social_housing": 0,
"renewal": 0
}
]
},
"property_vacancy_reason_first_let": {
"header": "",
"description": "",
"questions": {
"rsnvac": {
"check_answer_label": "Vacancy reason",
"header": "What is the reason for the property being vacant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"16": {
"value": "First let of conversion, rehabilitation or acquired property"
},
"17": {
"value": "First let of leased property"
},
"15": {
"value": "First let of new-build property"
}
}
}
},
"depends_on": [
{
"first_time_property_let_as_social_housing": 1,
"renewal": 0
}
]
},
"property_number_of_times_relet_not_social_let": {
"header": "",
"description": "",
"questions": {
"offered": {
"check_answer_label": "Times previously offered since becoming available",
"header": "Since becoming available for re-let, how many times has the property been previously offered?",
"hint_text": "This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0.",
"type": "numeric",
"min": 0,
"max": 150,
"step": 1,
"width": 2
}
},
"depends_on": [
{
"first_time_property_let_as_social_housing": 0,
"renewal": 0
}
]
},
"property_number_of_times_relet_social_let": {
"header": "",
"description": "",
"questions": {
"offered": {
"check_answer_label": "Times previously offered since becoming available",
"header": "Since becoming available, how many times has the property been previously offered?",
"hint_text": "If the property is being offered for let for the first time, enter 0.",
"type": "numeric",
"min": 0,
"max": 150,
"step": 1,
"width": 2
}
},
"depends_on": [
{
"first_time_property_let_as_social_housing": 1,
"renewal": 0
}
]
},
"property_unit_type": {
"header": "",
"description": "",
"questions": {
"unittype_gn": {
"check_answer_label": "Type of unit",
"header": "What type of unit is the property?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Bedsit"
},
"8": {
"value": "Bungalow"
},
"1": {
"value": "Flat or maisonette"
},
"7": {
"value": "House"
},
"10": {
"value": "Shared bungalow"
},
"4": {
"value": "Shared flat or maisonette"
},
"9": {
"value": "Shared house"
},
"6": {
"value": "Other"
}
}
}
},
"depends_on": [
{
"needstype": 1
}
]
},
"property_building_type": {
"header": "",
"description": "",
"questions": {
"builtype": {
"check_answer_label": "Type of building",
"header": "What type of building is the property?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Converted from previous residential or non-residential property"
},
"1": {
"value": "Purpose built"
}
}
}
},
"depends_on": [
{
"needstype": 1
}
]
},
"property_wheelchair_accessible": {
"header": "",
"description": "",
"questions": {
"wchair": {
"check_answer_label": "Property built or adapted to wheelchair-user standards",
"header": "Is the property built or adapted to wheelchair-user standards?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
}
}
}
},
"depends_on": [
{
"needstype": 1
}
]
},
"property_number_of_bedrooms": {
"header": "",
"description": "",
"questions": {
"beds": {
"check_answer_label": "Number of bedrooms",
"header": "How many bedrooms does the property have?",
"hint_text": "If shared accommodation, enter the number of bedrooms occupied by this household. A bedsit has 1 bedroom.",
"type": "numeric",
"min": 1,
"max": 12,
"step": 1,
"width": 2
}
},
"depends_on": [
{
"needstype": 1
}
]
},
"void_date": {
"header": "",
"description": "",
"questions": {
"voiddate": {
"check_answer_label": "Void date",
"header": "What is the void date?",
"hint_text": "For example, 27 3 2021.",
"type": "date",
"bottom_guidance_partial": "void_date"
}
},
"depends_on": [
{
"renewal": 0,
"rsnvac": 5
},
{
"renewal": 0,
"rsnvac": 6
},
{
"renewal": 0,
"rsnvac": 8
},
{
"renewal": 0,
"rsnvac": 9
},
{
"renewal": 0,
"rsnvac": 10
},
{
"renewal": 0,
"rsnvac": 11
},
{
"renewal": 0,
"rsnvac": 12
},
{
"renewal": 0,
"rsnvac": 13
},
{
"renewal": 0,
"rsnvac": 18
},
{
"renewal": 0,
"rsnvac": 19
},
{
"renewal": 0,
"rsnvac": 15
},
{
"renewal": 0,
"rsnvac": 16
},
{
"renewal": 0,
"rsnvac": 17
}
]
},
"void_date_value_check": {
"depends_on": [
{
"voiddate_in_soft_range?": true
}
],
"title_text": {
"translation": "soft_validations.void_date.title_text"
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {
"translation": "soft_validations.void_date.hint_text",
"arguments": []
},
"questions": {
"void_date_value_check": {
"check_answer_label": "Void date confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"void_date_value_check": 0
},
{
"void_date_value_check": 1
}
]
},
"header": "Are you sure the property has been vacant for this long?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["voiddate", "startdate"]
},
"property_major_repairs": {
"header": "",
"description": "",
"questions": {
"majorrepairs": {
"check_answer_label": "Major repairs carried out during void period",
"header": "Were any major repairs carried out during the void period?",
"hint_text": "Major repairs are works that could not be reasonably carried out with a tenant living at the property. For example, structural repairs.",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"0": {
"value": "No"
}
},
"conditional_for": {
"mrcdate": [
1
]
}
},
"mrcdate": {
"check_answer_label": "Completion date of repairs",
"header": "When were the repairs completed?",
"hint_text": "For example, 27 3 2021.",
"type": "date"
}
},
"depends_on": [
{
"renewal": 0,
"rsnvac": 5
},
{
"renewal": 0,
"rsnvac": 6
},
{
"renewal": 0,
"rsnvac": 8
},
{
"renewal": 0,
"rsnvac": 9
},
{
"renewal": 0,
"rsnvac": 10
},
{
"renewal": 0,
"rsnvac": 11
},
{
"renewal": 0,
"rsnvac": 12
},
{
"renewal": 0,
"rsnvac": 13
},
{
"renewal": 0,
"rsnvac": 18
},
{
"renewal": 0,
"rsnvac": 19
}
]
},
"property_major_repairs_value_check": {
"depends_on": [
{
"major_repairs_date_in_soft_range?": true
}
],
"title_text": {
"translation": "soft_validations.major_repairs_date.title_text"
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {
"translation": "soft_validations.major_repairs_date.hint_text",
"arguments": []
},
"questions": {
"major_repairs_date_value_check": {
"check_answer_label": "Major repairs date confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"major_repairs_date_value_check": 0
},
{
"major_repairs_date_value_check": 1
}
]
},
"header": "Are you sure the property has been vacant for this long?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["mrcdate", "startdate"]
}
},
"displayed_in_tasklist": [
{
"is_supported_housing?": false
},
{
"is_renewal?": false
}
]
},
"tenancy_information": {
"label": "Tenancy information",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"joint": {
"header": "",
"description": "",
"questions": {
"joint": {
"check_answer_label": "Is this a joint tenancy?",
"header": "Is this a joint tenancy?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": "true"
},
"3": {
"value": "Don’t know"
}
}
}
}
},
"starter_tenancy": {
"header": "",
"description": "",
"questions": {
"startertenancy": {
"check_answer_label": "Is this a starter or introductory tenancy?",
"header": "Is this a starter tenancy?",
"hint_text": "This is also known as an ‘introductory period’.",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
}
}
}
}
},
"tenancy_type": {
"header": "",
"description": "",
"questions": {
"tenancy": {
"check_answer_label": "Type of main tenancy",
"header": "What is the type of tenancy?",
"hint_text": "",
"type": "radio",
"answer_options": {
"4": {
"value": "Assured Shorthold Tenancy (AST) – Fixed term"
},
"6": {
"value": "Secure – fixed term"
},
"2": {
"value": "Assured – lifetime"
},
"7": {
"value": "Secure – lifetime"
},
"5": {
"value": "Licence agreement"
},
"3": {
"value": "Other"
}
},
"conditional_for": {
"tenancyother": [
3
]
}
},
"tenancyother": {
"header": "Please state the tenancy type",
"hint_text": "",
"type": "text"
}
},
"depends_on": [
{
"startertenancy": 2
}
]
},
"starter_tenancy_type": {
"header": "",
"description": "",
"questions": {
"tenancy": {
"check_answer_label": "Type of main tenancy after the starter period has ended?",
"header": "What is the type of tenancy after the starter period has ended?",
"hint_text": "This is also known as an ‘introductory period’.",
"type": "radio",
"answer_options": {
"4": {
"value": "Assured Shorthold Tenancy (AST) – Fixed term"
},
"6": {
"value": "Secure – fixed term"
},
"2": {
"value": "Assured – lifetime"
},
"7": {
"value": "Secure – lifetime"
},
"5": {
"value": "Licence agreement"
},
"3": {
"value": "Other"
}
},
"conditional_for": {
"tenancyother": [
3
]
}
},
"tenancyother": {
"header": "Please state the tenancy type",
"hint_text": "",
"type": "text"
}
},
"depends_on": [
{
"startertenancy": 1
}
]
},
"tenancy_length": {
"header": "",
"description": "",
"questions": {
"tenancylength": {
"check_answer_label": "Length of fixed-term tenancy",
"header": "What is the length of the fixed-term tenancy to the nearest year?",
"hint_text": "Don’t include the starter or introductory period.",
"type": "numeric",
"min": 0,
"max": 150,
"step": 1,
"width": 2
}
},
"depends_on": [
{
"tenancy": 4
},
{
"tenancy": 6
}
]
},
"shelteredaccom": {
"header": "",
"description": "",
"questions": {
"sheltered": {
"check_answer_label": "Is this letting in sheltered accommodation?",
"header": "Is this letting in sheltered accommodation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Yes – extra care housing"
},
"1": {
"value": "Yes – specialist retirement housing"
},
"3": {
"value": "No"
},
"divider": {
"value": true
},
"4": {
"value": "Don’t know"
}
}
}
},
"depends_on": [
{
"needstype": 2
}
]
}
}
}
}
},
"household": {
"label": "About the household",
"subsections": {
"household_characteristics": {
"label": "Household characteristics",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"declaration": {
"header": "Department for Levelling Up, Housing & Communities privacy notice",
"description": "",
"questions": {
"declaration": {
"header": "",
"top_guidance_partial": "privacy_notice_tenant",
"check_answer_label": "Tenant has seen the privacy notice",
"check_answers_card_number": 0,
"type": "checkbox",
"answer_options": {
"declaration": {
"value": "The tenant has seen the DLUHC privacy notice"
}
}
}
}
},
"household_members": {
"header": "",
"description": "",
"questions": {
"hhmemb": {
"check_answers_card_number": 0,
"check_answer_label": "Number of household members",
"header": "How many people live in the household for this letting?",
"hint_text": "You can provide details for a maximum of 8 people.",
"type": "numeric",
"min": 1,
"max": 8,
"step": 1,
"width": 2
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"no_females_pregnant_household_lead_hhmemb_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_age": {
"header": "",
"description": "",
"questions": {
"age1_known": {
"check_answers_card_number": 1,
"header": "Do you know the lead tenant’s age?",
"hint_text": "The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age1": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age1_known": 0
},
{
"age1_known": 1
}
]
}
},
"age1": {
"check_answers_card_number": 1,
"header": "Age",
"check_answer_label": "Lead tenant’s age",
"type": "numeric",
"min": 16,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age1_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"no_females_pregnant_household_lead_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex1": {
"check_answer_label": "Lead tenant’s gender identity",
"check_answers_card_number": 1,
"header": "Which of these best describes the lead tenant’s gender identity?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"no_females_pregnant_household_lead_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_ethnic_group": {
"header": "",
"description": "",
"questions": {
"ethnic_group": {
"check_answer_label": "Lead tenant’s ethnic group",
"check_answers_card_number": 1,
"header": "What is the lead tenant’s ethnic group?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"0": {
"value": "White"
},
"1": {
"value": "Mixed or Multiple ethnic groups"
},
"2": {
"value": "Asian or Asian British"
},
"3": {
"value": "Black, African, Caribbean or Black British"
},
"4": {
"value": "Arab or other ethnic group"
},
"divider": {
"value": true
},
"17": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"lead_tenant_ethnic_background_arab": {
"header": "",
"description": "",
"questions": {
"ethnic": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s ethnic background",
"header": "Which of the following best describes the lead tenant’s Arab background?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"19": {
"value": "Arab"
},
"16": {
"value": "Other ethnic group"
}
}
}
},
"depends_on": [
{
"ethnic_group": 4
}
]
},
"lead_tenant_ethnic_background_asian": {
"header": "",
"description": "",
"questions": {
"ethnic": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s ethnic background",
"header": "Which of the following best describes the lead tenant’s Asian or Asian British background?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"10": {
"value": "Bangladeshi"
},
"15": {
"value": "Chinese"
},
"8": {
"value": "Indian"
},
"9": {
"value": "Pakistani"
},
"11": {
3 years ago
"value": "Any other Asian or Asian British background"
}
}
}
},
"depends_on": [
{
"ethnic_group": 2
}
]
},
"lead_tenant_ethnic_background_black": {
"header": "",
"description": "",
"questions": {
"ethnic": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s ethnic background",
"header": "Which of the following best describes the lead tenant’s Black, African, Caribbean or Black British background?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"13": {
"value": "African"
},
"12": {
"value": "Caribbean"
},
"14": {
"value": "Any other Black, African, Caribbean or Black British background"
}
}
}
},
"depends_on": [
{
"ethnic_group": 3
}
]
},
"lead_tenant_ethnic_background_mixed": {
"header": "",
"description": "",
"questions": {
"ethnic": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s ethnic background",
"header": "Which of the following best describes the lead tenant’s Mixed or Multiple ethnic groups background?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"4": {
"value": "White and Black Caribbean"
},
"5": {
"value": "White and Black African"
},
"6": {
"value": "White and Asian"
},
"7": {
"value": "Any other Mixed or Multiple ethnic background"
}
}
}
},
"depends_on": [
{
"ethnic_group": 1
}
]
},
"lead_tenant_ethnic_background_white": {
"header": "",
"description": "",
"questions": {
"ethnic": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s ethnic background",
"header": "Which of the following best describes the lead tenant’s White background?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"1": {
"value": "English, Welsh, Northern Irish, Scottish or British"
},
"2": {
"value": "Irish"
},
"18": {
"value": "Gypsy or Irish Traveller"
3 years ago
},
"3": {
"value": "Any other White background"
}
}
}
},
"depends_on": [
{
"ethnic_group": 0
}
]
},
"lead_tenant_nationality": {
"header": "",
"description": "",
"questions": {
"national": {
"check_answers_card_number": 1,
"check_answer_label": "Lead tenant’s nationality",
"header": "What is the lead tenant’s nationality?",
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"18": {
"value": "United Kingdom"
},
"17": {
"value": "Republic of Ireland"
},
"19": {
"value": "European Economic Area (EEA) country, excluding Ireland"
},
"12": {
"value": "Other"
},
"divider": true,
"13": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"lead_tenant_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat1": {
"check_answer_label": "Lead tenant’s working situation",
"header": "Which of these best describes the lead tenant’s working situation?",
"check_answers_card_number": 1,
"hint_text": "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"declaration": 1
}
]
},
"lead_tenant_under_retirement_value_check": {
"depends_on": [
{
"person_1_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age1",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 1,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat1", "age1"]
},
"lead_tenant_over_retirement_value_check": {
"depends_on": [
{
"person_1_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_1",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_1",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_1",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 1,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat1", "sex1", "age1"]
},
"person_2_known": {
"header": "You’ve given us the details for 1 person in the household",
"description": "",
"questions": {
"details_known_2": {
"check_answer_label": "Details known for person 2",
"check_answers_card_number": 2,
"header": "Do you know details for person 2?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 2
},
{
"hhmemb": 3
},
{
"hhmemb": 4
},
{
"hhmemb": 5
},
{
"hhmemb": 6
},
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_2_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat2": {
"check_answer_label": "Person 2’s relationship to the lead tenant",
"check_answers_card_number": 2,
"header": "What is person 2’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_2": 0
}
]
},
"person_2_age": {
"header": "",
"description": "",
"questions": {
"age2_known": {
"header": "Do you know person 2’s age?",
"check_answers_card_number": 2,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age2": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age2_known": 0
},
{
"age2_known": 1
}
]
}
},
"age2": {
"header": "Age",
"check_answer_label": "Person 2’s age",
"check_answers_card_number": 2,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age2_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_2": 0
}
]
},
"no_females_pregnant_household_person_2_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age2_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_2_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age2_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_2_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex2": {
"check_answer_label": "Person 2’s gender identity",
"header": "Which of these best describes person 2’s gender identity?",
"check_answers_card_number": 2,
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_2": 0
}
]
},
"no_females_pregnant_household_person_2_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_2": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_2_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_2": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_2_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat2": {
"check_answer_label": "Person 2’s working situation",
"check_answers_card_number": 2,
"header": "Which of these best describes person 2’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age2_known": 1
},
{
"age2": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_2": 0,
"age2": {
"operator": ">",
"operand": 15
}
},
{
"details_known_2": 0,
"age2": null
}
]
},
"person_2_under_retirement_value_check": {
"depends_on": [
{
"person_2_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age2",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 2,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat2", "age2"]
},
"person_2_over_retirement_value_check": {
"depends_on": [
{
"person_2_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_2",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_2",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_2",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 2,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat2", "sex2", "age2"]
},
"person_3_known": {
"header": "You’ve given us the details for 2 people in the household",
"description": "",
"questions": {
"details_known_3": {
"check_answer_label": "Details known for person 3",
"check_answers_card_number": 3,
"header": "Do you know details for person 3?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 3
},
{
"hhmemb": 4
},
{
"hhmemb": 5
},
{
"hhmemb": 6
},
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_3_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat3": {
"check_answer_label": "Person 3’s relationship to the lead tenant",
"check_answers_card_number": 3,
"header": "What is person 3’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_3": 0
}
]
},
"person_3_age": {
"header": "",
"description": "",
"questions": {
"age3_known": {
"header": "Do you know person 3’s age?",
"check_answers_card_number": 3,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age3": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age3_known": 0
},
{
"age3_known": 1
}
]
}
},
"age3": {
"header": "Age",
"check_answer_label": "Person 3’s age",
"check_answers_card_number": 3,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age3_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_3": 0
}
]
},
"no_females_pregnant_household_person_3_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age3_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_3_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age3_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_3_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex3": {
"check_answer_label": "Person 3’s gender identity",
"check_answers_card_number": 3,
"header": "Which of these best describes person 3’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_3": 0
}
]
},
"no_females_pregnant_household_person_3_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_3": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_3_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_3": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_3_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat3": {
"check_answer_label": "Person 3’s working situation",
"check_answers_card_number": 3,
"header": "Which of these best describes person 3’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age3_known": 1
},
{
"age3": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_3": 0,
"age3": {
"operator": ">",
"operand": 15
}
},
{
"details_known_3": 0,
"age3": null
}
]
},
"person_3_under_retirement_value_check": {
"depends_on": [
{
"person_3_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age3",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 3,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat3", "age3"]
},
"person_3_over_retirement_value_check": {
"depends_on": [
{
"person_3_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_3",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_3",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_3",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 3,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat3", "sex3", "age3"]
},
"person_4_known": {
"header": "You’ve given us the details for 3 people in the household",
"description": "",
"questions": {
"details_known_4": {
"check_answer_label": "Details known for person 4",
"check_answers_card_number": 4,
"header": "Do you know details for person 4?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 4
},
{
"hhmemb": 5
},
{
"hhmemb": 6
},
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_4_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat4": {
"check_answer_label": "Person 4’s relationship to the lead tenant",
"check_answers_card_number": 4,
"header": "What is person 4’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_4": 0
}
]
},
"person_4_age": {
"header": "",
"description": "",
"questions": {
"age4_known": {
"header": "Do you know person 4’s age?",
"check_answers_card_number": 4,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age4": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age4_known": 0
},
{
"age4_known": 1
}
]
}
},
"age4": {
"header": "Age",
"check_answer_label": "Person 4’s age",
"check_answers_card_number": 4,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age4_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_4": 0
}
]
},
"no_females_pregnant_household_person_4_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age4_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_4_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age4_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_4_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex4": {
"check_answer_label": "Person 4’s gender identity",
"check_answers_card_number": 4,
"header": "Which of these best describes person 4’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_4": 0
}
]
},
"no_females_pregnant_household_person_4_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_4": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_4_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_4": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_4_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat4": {
"check_answer_label": "Person 4’s working situation",
"check_answers_card_number": 4,
"header": "Which of these best describes person 4’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age4_known": 1
},
{
"age4": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_4": 0,
"age4": {
"operator": ">",
"operand": 15
}
},
{
"details_known_4": 0,
"age4": null
}
]
},
"person_4_under_retirement_value_check": {
"depends_on": [
{
"person_4_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age4",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 4,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat4", "age4"]
},
"person_4_over_retirement_value_check": {
"depends_on": [
{
"person_4_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_4",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_4",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_4",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 4,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat4", "sex4", "age4"]
},
"person_5_known": {
"header": "You’ve given us the details for 4 people in the household",
"description": "",
"questions": {
"details_known_5": {
"check_answer_label": "Details known for person 5",
"check_answers_card_number": 5,
"header": "Do you know details for person 5?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 5
},
{
"hhmemb": 6
},
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_5_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat5": {
"check_answer_label": "Person 5’s relationship to the lead tenant",
"check_answers_card_number": 5,
"header": "What is person 5’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_5": 0
}
]
},
"person_5_age": {
"header": "",
"description": "",
"questions": {
"age5_known": {
"header": "Do you know person 5’s age?",
"check_answers_card_number": 5,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age5": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age5_known": 0
},
{
"age5_known": 1
}
]
}
},
"age5": {
"header": "Age",
"check_answer_label": "Person 5’s age",
"check_answers_card_number": 5,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age5_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_5": 0
}
]
},
"no_females_pregnant_household_person_5_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age5_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_5_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age5_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_5_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex5": {
"check_answer_label": "Person 5’s gender identity",
"check_answers_card_number": 5,
"header": "Which of these best describes person 5’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_5": 0
}
]
},
"no_females_pregnant_household_person_5_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_5": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_5_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_5": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_5_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat5": {
"check_answer_label": "Person 5’s working situation",
"check_answers_card_number": 5,
"header": "Which of these best describes person 5’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age5_known": 1
},
{
"age5": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_5": 0,
"age5": {
"operator": ">",
"operand": 15
}
},
{
"details_known_5": 0,
"age5": null
}
]
},
"person_5_under_retirement_value_check": {
"depends_on": [
{
"person_5_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age5",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 5,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat5", "age5"]
},
"person_5_over_retirement_value_check": {
"depends_on": [
{
"person_5_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_5",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_5",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_5",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 5,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat5", "sex5", "age5"]
},
"person_6_known": {
"header": "You’ve given us the details for 5 people in the household",
"description": "",
"questions": {
"details_known_6": {
"check_answer_label": "Details known for person 6",
"check_answers_card_number": 6,
"header": "Do you know details for person 6?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 6
},
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_6_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat6": {
"check_answer_label": "Person 6’s relationship to the lead tenant",
"check_answers_card_number": 6,
"header": "What is person 6’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_6": 0
}
]
},
"person_6_age": {
"header": "",
"description": "",
"questions": {
"age6_known": {
"header": "Do you know person 6’s age?",
"check_answers_card_number": 6,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age6": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age6_known": 0
},
{
"age6_known": 1
}
]
}
},
"age6": {
"header": "Age",
"check_answer_label": "Person 6’s age",
"check_answers_card_number": 6,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age6_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_6": 0
}
]
},
"no_females_pregnant_household_person_6_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age6_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_6_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age6_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_6_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex6": {
"check_answer_label": "Person 6’s gender identity",
"check_answers_card_number": 6,
"header": "Which of these best describes person 6’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_6": 0
}
]
},
"no_females_pregnant_household_person_6_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_6": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_6_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_6": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_6_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat6": {
"check_answer_label": "Person 6’s working situation",
"check_answers_card_number": 6,
"header": "Which of these best describes person 6’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age6_known": 1
},
{
"age6": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_6": 0,
"age6": {
"operator": ">",
"operand": 15
}
},
{
"details_known_6": 0,
"age6": null
}
]
},
"person_6_under_retirement_value_check": {
"depends_on": [
{
"person_6_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age6",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 6,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat6", "age6"]
},
"person_6_over_retirement_value_check": {
"depends_on": [
{
"person_6_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_6",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_6",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_6",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 6,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat6", "sex6", "age6"]
},
"person_7_known": {
"header": "You’ve given us the details for 6 people in the household",
"description": "",
"questions": {
"details_known_7": {
"check_answer_label": "Details known for person 7",
"check_answers_card_number": 7,
"header": "Do you know details for person 7?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 7
},
{
"hhmemb": 8
}
]
},
"person_7_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat7": {
"check_answer_label": "Person 7’s relationship to the lead tenant",
"check_answers_card_number": 7,
"header": "What is person 7’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_7": 0
}
]
},
"person_7_age": {
"header": "",
"description": "",
"questions": {
"age7_known": {
"header": "Do you know person 7’s age?",
"check_answers_card_number": 7,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age7": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age7_known": 0
},
{
"age7_known": 1
}
]
}
},
"age7": {
"header": "Age",
"check_answer_label": "Person 7’s age",
"check_answers_card_number": 7,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age7_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_7": 0
}
]
},
"no_females_pregnant_household_person_7_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age7_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_7_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age7_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_7_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex7": {
"check_answer_label": "Person 7’s gender identity",
"check_answers_card_number": 7,
"header": "Which of these best describes person 7’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_7": 0
}
]
},
"no_females_pregnant_household_person_7_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_7": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_7_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_7": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_7_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat7": {
"check_answer_label": "Person 7’s working situation",
"check_answers_card_number": 7,
"header": "Which of these best describes person 7’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age7_known": 1
},
{
"age7": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_7": 0,
"age7": {
"operator": ">",
"operand": 15
}
},
{
"details_known_7": 0,
"age7": null
}
]
},
"person_7_under_retirement_value_check": {
"depends_on": [
{
"person_7_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age7",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 7,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat7", "age7"]
},
"person_7_over_retirement_value_check": {
"depends_on": [
{
"person_7_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_7",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_7",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_7",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 7,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat7", "sex7", "age7"]
},
"person_8_known": {
"header": "You’ve given us the details for 7 people in the household",
"description": "",
"questions": {
"details_known_8": {
"check_answer_label": "Details known for person 8",
"check_answers_card_number": 8,
"header": "Do you know details for person 8?",
"hint_text": "You must provide details for everyone in the household if you know them.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"hhmemb": 8
}
]
},
"person_8_relationship_to_lead": {
"header": "",
"description": "",
"questions": {
"relat8": {
"check_answer_label": "Person 8’s relationship to the lead tenant",
"check_answers_card_number": 8,
"header": "What is person 8’s relationship to the lead tenant?",
"hint_text": "",
"type": "radio",
"answer_options": {
"P": {
"value": "Partner"
},
"C": {
"value": "Child",
"hint": "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education."
},
"X": {
"value": "Other"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_8": 0
}
]
},
"person_8_age": {
"header": "",
"description": "",
"questions": {
"age8_known": {
"header": "Do you know person 8’s age?",
"check_answers_card_number": 8,
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"age8": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"age8_known": 0
},
{
"age8_known": 1
}
]
}
},
"age8": {
"header": "Age",
"check_answer_label": "Person 8’s age",
"check_answers_card_number": 8,
"type": "numeric",
"min": 1,
"max": 120,
"step": 1,
"width": 2,
"inferred_check_answers_value": [{
"condition": {
"age8_known": 1
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"details_known_8": 0
}
]
},
"no_females_pregnant_household_person_8_age_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"age8_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_8_age_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"age8_known": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_8_gender_identity": {
"header": "",
"description": "",
"questions": {
"sex8": {
"check_answer_label": "Person 8’s gender identity",
"check_answers_card_number": 8,
"header": "Which of these best describes person 8’s gender identity?",
"hint_text": "",
"type": "radio",
"answer_options": {
"F": {
"value": "Female"
},
"M": {
"value": "Male"
},
"X": {
"value": "Non-binary"
},
"divider": {
"value": true
},
"R": {
"value": "Person prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_8": 0
}
]
},
"no_females_pregnant_household_person_8_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true,
"details_known_8": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_8_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true,
"details_known_8": 0
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_8_working_situation": {
"header": "",
"description": "",
"questions": {
"ecstat8": {
"check_answer_label": "Person 8’s working situation",
"check_answers_card_number": 8,
"header": "Which of these best describes person 8’s working situation?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Part-time – Less than 30 hours"
},
"1": {
"value": "Full-time – 30 hours or more"
},
"7": {
"value": "Full-time student"
},
"3": {
"value": "In government training into work, such as New Deal"
},
"4": {
"value": "Jobseeker"
},
"6": {
"value": "Not seeking work"
},
"8": {
"value": "Unable to work because of long term sick or disability"
},
"5": {
"value": "Retired"
},
"9": {
"value": "Child under 16",
"depends_on": [
{
"age8_known": 1
},
{
"age8": {
"operator": "<",
"operand": 16
}
}
]
},
"0": {
"value": "Other"
},
"divider": {
"value": true
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
},
"depends_on": [
{
"details_known_8": 0,
"age8": {
"operator": ">",
"operand": 15
}
},
{
"details_known_8": 0,
"age8": null
}
]
},
"person_8_under_retirement_value_check": {
"depends_on": [
{
"person_8_retired_under_soft_min_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.min.title",
"arguments": [
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "age8",
"label": true,
"i18n_template": "age"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 8,
"header": "Are you sure this person is retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat8", "age8"]
},
"person_8_over_retirement_value_check": {
"depends_on": [
{
"person_8_not_retired_over_soft_max_age?": true
}
],
"title_text": {
"translation": "soft_validations.retirement.max.title",
"arguments": [
{
"key": "retirement_age_for_person_8",
"label": false,
"i18n_template": "age"
}
]
},
"informative_text": {
"translation": "soft_validations.retirement.max.hint_text",
"arguments": [
{
"key": "plural_gender_for_person_8",
"label": false,
"i18n_template": "gender"
},
{
"key": "retirement_age_for_person_8",
"label": false,
"i18n_template": "age"
}
]
},
"questions": {
"retirement_value_check": {
"check_answer_label": "Retirement confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"retirement_value_check": 0
},
{
"retirement_value_check": 1
}
]
},
"check_answers_card_number": 8,
"header": "Are you sure this person isn’t retired?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["ecstat8", "sex8", "age8"]
}
}
},
"household_needs": {
"label": "Household needs",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"armed_forces": {
"header": "",
"description": "",
"questions": {
"armedforces": {
"header": "Does anybody in the household have any links to the UK armed forces?",
"hint_text": "This excludes national service.<br><br>If there are several people in the household with links to the UK armed forces, you should answer for the regular. If there’s no regular, answer for the reserve. If there’s no reserve, answer for the spouse or civil partner.",
"type": "radio",
"check_answer_label": "Household links to UK armed forces",
"answer_options": {
"1": {
"value": "Yes – the person is a current or former regular"
},
"4": {
"value": "Yes – the person is a current or former reserve"
},
"5": {
"value": "Yes – the person is a spouse or civil partner of a UK armed forces member and has been bereaved or separated from them within the last 2 years"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Person prefers not to say"
},
"6": {
"value": "Don’t know"
}
}
}
}
},
"armed_forces_serving": {
"header": "",
"description": "",
"depends_on": [
{
"armedforces": 1
}
],
"questions": {
"leftreg": {
"header": "Is the person still serving in the UK armed forces?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Person still serving in UK armed forces",
"answer_options": {
"6": {
"value": "Yes"
},
"4": {
"value": "No – they left up to and including 5 years ago"
},
"5": {
"value": "No – they left more than 5 years ago"
},
"divider": {
"value": true
},
"3": {
"value": "Person prefers not to say"
}
}
}
}
},
"armed_forces_injured": {
"header": "",
"description": "",
"depends_on": [
{
"armedforces": 1
},
{
"armedforces": 4
}
],
"questions": {
"reservist": {
"header": "Was the person seriously injured or ill as a result of serving in the UK armed forces?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Person seriously injured or ill as result of serving in UK armed forces",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Person prefers not to say"
}
}
}
}
},
"pregnant": {
"header": "",
"description": "",
"questions": {
"preg_occ": {
"header": "Is anybody in the household pregnant?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Anybody in household pregnant",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Tenant prefers not to say"
}
}
}
}
},
"no_females_pregnant_household_value_check": {
"depends_on": [
{
"no_females_in_a_pregnant_household?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.no_females",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy soft validation",
"hidden_in_check_answers": true,
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_value_check": {
"depends_on": [
{
"female_in_pregnant_household_in_soft_validation_range?": true
}
],
"title_text": {
"translation": "soft_validations.pregnancy.title",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"informative_text": {
"translation": "soft_validations.pregnancy.females_not_in_soft_age_range",
"arguments": [
{
"key": "sex1",
"label": true,
"i18n_template": "sex1"
}
]
},
"questions": {
"pregnancy_value_check": {
"check_answer_label": "Pregnancy confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"pregnancy_value_check": 0
},
{
"pregnancy_value_check": 1
}
]
},
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"access_needs_exist": {
"header": "",
"description": "",
"questions": {
"housingneeds": {
"header": "Does anybody in the household have any disabled access needs?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Anybody with disabled access needs",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Don’t know"
}
}
}
}
},
"type_of_access_needs": {
"header": "Disabled access needs",
"description": "",
"questions": {
"housingneeds_type": {
"header": "What type of access needs do they have?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Disabled access needs",
"answer_options": {
"0": {
"value": "Fully wheelchair accessible housing"
},
"1": {
"value": "Wheelchair access to essential rooms"
},
"2": {
"value": "Level access housing"
},
"divider": {
"value": true
},
"3": {
"value": "None of the listed options"
}
}
},
"housingneeds_other": {
"header": "Do they have any other access needs?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Other disabled access needs",
"answer_options": {
"1": {
"value": "Yes"
},
"0": {
"value": "No"
}
}
}
},
"depends_on": [
{
"housingneeds": 1
}
]
},
"health_conditions": {
"header": "",
"description": "",
"questions": {
"illness": {
"header": "Does anybody in the household have a physical or mental health condition (or other illness) expected to last 12 months or more?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Anybody in household with physical or mental health condition",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Tenant prefers not to say"
}
}
}
}
},
"health_condition_effects": {
"header": "",
"description": "",
"depends_on": [
{
"illness": 1
}
],
"questions": {
"condition_effects": {
"header": "How is the person affected by their condition or illness?",
"hint_text": "Select all that apply.",
"type": "checkbox",
"check_answer_label": "How is person affected by condition or illness",
"answer_options": {
"illness_type_4": {
"value": "Dexterity",
"hint": "For example, lifting and carrying objects or using a keyboard."
},
"illness_type_5": {
"value": "Learning or understanding or concentrating"
},
"illness_type_2": {
"value": "Hearing",
"hint": "For example, deafness or partial hearing."
},
"illness_type_6": {
"value": "Memory"
},
"illness_type_7": {
"value": "Mental health",
"hint": "For example, depression or anxiety."
},
"illness_type_3": {
"value": "Mobility",
"hint": "For example, walking short distances or climbing stairs."
},
"illness_type_9": {
"value": "Socially or behaviourally",
"hint": "For example, associated with autism spectrum disorder (ASD) which includes Asperger’s or attention deficit hyperactivity disorder (ADHD)."
},
"illness_type_8": {
"value": "Stamina or breathing or fatigue"
},
"illness_type_1": {
"value": "Vision",
"hint": "For example, blindness or partial sight."
},
"illness_type_10": {
"value": "Other"
}
}
}
}
}
}
},
"household_situation": {
"label": "Household situation",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"time_lived_in_local_authority": {
"header": "",
"description": "",
"questions": {
"layear": {
"check_answer_label": "Length of time in local authority area",
"header": "How long has the household continuously lived in the local authority area of the new letting?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Just moved to local authority area"
},
"2": {
"value": "Less than 1 year"
},
"7": {
"value": "1 year but under 2 years"
},
"8": {
"value": "2 years but under 3 years"
},
"9": {
"value": "3 years but under 4 years"
},
"10": {
"value": "4 years but under 5 years"
},
"5": {
"value": "5 years or more"
},
"divider": {
"value": true
},
"6": {
"value": "Don’t know"
}
}
}
}
},
"time_on_waiting_list": {
"header": "",
"description": "",
"questions": {
"waityear": {
"check_answer_label": "Length of time on local authority waiting list",
"header": "How long has the household been on the local authority waiting list for the new letting?",
"hint_text": "",
"type": "radio",
"answer_options": {
"2": {
"value": "Less than 1 year"
},
"7": {
"value": "1 year but under 2 years"
},
"8": {
"value": "2 years but under 3 years"
},
"9": {
"value": "3 years but under 4 years"
},
"10": {
"value": "4 years but under 5 years"
},
"5": {
"value": "5 years or more"
},
"divider": {
"value": true
},
"6": {
"value": "Don’t know"
}
}
}
},
"depends_on": [
{
"renewal": 0
}
]
},
"reason_for_leaving_last_settled_home": {
"header": "",
"description": "",
"questions": {
"reason": {
"check_answer_label": "Reason for leaving last settled home",
"header": "What is the tenant’s main reason for the household leaving their last settled home?",
"hint_text": "The tenant’s ‘last settled home’ is their last long-standing home. For tenants who were in temporary accommodation or sleeping rough, their last settled home is where they were living previously.",
"type": "radio",
"answer_options": {
"40": {
"value": "End of assured shorthold tenancy (no fault)"
},
"41": {
"value": "End of assured shorthold tenancy (eviction or tenant at fault)"
},
"42": {
"value": "End of fixed term tenancy (no fault)"
},
"43": {
"value": "End of fixed term tenancy (eviction or tenant at fault)"
},
"1": {
"value": "Permanently decanted from another property owned by this landlord"
},
"46": {
"value": "Discharged from long-stay hospital or similar institution"
},
"45": {
"value": "Discharged from prison"
},
"2": {
"value": "Left home country as a refugee"
},
"4": {
"value": "Loss of tied accommodation"
},
"9": {
"value": "Asked to leave by family or friends"
},
"44": {
"value": "Death of household member in last settled accommodation"
},
"8": {
"value": "Relationship breakdown (non-violent) with partner"
},
"16": {
"value": "To move nearer to family, friends or school"
},
"17": {
"value": "To move nearer to work"
},
"7": {
"value": "Domestic abuse"
},
"31": {
"value": "Hate crime"
},
"10": {
"value": "Racial harassment"
},
"11": {
"value": "Other problems with neighbours"
},
"35": {
"value": "Couldn’t afford fees attached to renewing the tenancy"
},
"36": {
"value": "Couldn’t afford increase in rent"
},
"38": {
"value": "Couldn’t afford rent or mortgage (employment)"
},
"37": {
"value": "Couldn’t afford rent or mortgage (welfare reforms)"
},
"39": {
"value": "Couldn’t afford rent or mortgage (other)"
},
"34": {
"value": "Repossession"
},
"12": {
"value": "Property unsuitable because of overcrowding"
},
"13": {
"value": "Property unsuitable because of ill health or disability"
},
"14": {
"value": "Property unsuitable because of poor condition"
},
"18": {
"value": "To move to accommodation with support"
},
"19": {
"value": "To move to independent accommodation"
},
"30": {
"value": "Under occupation (no incentive)"
},
"29": {
"value": "Under occupation (offered incentive to downsize)"
},
"20": {
"value": "Other"
},
"47": {
"value":"Tenant prefers not to say"
},
"divider": {
"value": true
},
"28": {
"value": "Don’t know"
}
},
"conditional_for": {
"reasonother": [
20
]
}
},
"reasonother": {
"header": "What is the reason?",
"hint_text": "",
"type": "text"
}
},
"depends_on": [
{
"renewal": 0
}
]
},
"reason_for_leaving_last_settled_home_renewal": {
"header": "",
"description": "",
"questions": {
"reason": {
"check_answer_label": "Reason for leaving last settled home",
"header": "What is the tenant’s main reason for the household leaving their last settled home?",
"hint_text": "You told us this letting is a renewal. We have removed some options because of this.",
"type": "radio",
"answer_options": {
"40": {
"value": "End of assured shorthold tenancy (no fault)"
},
"42": {
"value": "End of fixed term tenancy (no fault)"
},
"20": {
"value": "Other"
},
"47": {
"value":"Tenant prefers not to say"
},
"divider": {
"value": true
},
"28": {
"value": "Don’t know"
}
},
"conditional_for": {
"reasonother": [
20
]
}
},
"reasonother": {
"header": "What is the reason?",
"hint_text": "",
"type": "text"
}
},
"depends_on": [
{
"renewal": 1
}
]
},
"previous_housing_situation": {
"header": "",
"description": "",
"questions": {
"prevten": {
"check_answer_label": "Where was the household immediately before this letting?",
"header": "Where was the household immediately before this letting?",
"hint_text": "This is where the household was the night before they moved.",
"type": "radio",
"answer_options": {
"30": {
"value": "Fixed-term local authority general needs tenancy"
},
"32": {
"value": "Fixed-term private registered provider (PRP) general needs tenancy"
},
"31": {
"value": "Lifetime local authority general needs tenancy"
},
"33": {
"value": "Lifetime private registered provider (PRP) general needs tenancy"
},
"34": {
"value": "Specialist retirement housing"
},
"35": {
"value": "Extra care housing"
},
"6": {
"value": "Other supported housing"
},
"3": {
"value": "Private sector tenancy"
},
"27": {
"value": "Owner occupation (low-cost home ownership)"
},
"26": {
"value": "Owner occupation (private)"
},
"28": {
"value": "Living with friends or family"
},
"14": {
"value": "Bed and breakfast"
},
"7": {
"value": "Direct access hostel"
},
"10": {
"value": "Hospital"
},
"29": {
"value": "Prison or approved probation hostel"
},
"19": {
"value": "Rough sleeping"
},
"18": {
"value": "Any other temporary accommodation"
},
"13": {
"value": "Children’s home or foster care"
},
"24": {
"value": "Home Office Asylum Support"
},
"23": {
"value": "Mobile home or caravan"
},
"21": {
"value": "Refuge"
},
"9": {
"value": "Residential care home"
},
"4": {
"value": "Tied housing or rented with job"
},
"25": {
"value": "Any other accommodation"
}
}
}
},
"depends_on": [
{
"renewal": 0
}
]
},
"previous_housing_situation_renewal": {
"header": "",
"description": "",
"questions": {
"prevten": {
"check_answer_label": "Where was the household immediately before this letting?",
"header": "Where was the household immediately before this letting?",
"hint_text": "",
"type": "radio",
"answer_options": {
"34": {
"value": "Specialist retirement housing"
},
"35": {
"value": "Extra care housing"
},
"6": {
"value": "Other supported housing"
}
}
}
},
"depends_on": [
{
"renewal": 1,
"needstype": 2
}
]
},
"homelessness": {
"header": "",
"description": "",
"questions": {
"homeless": {
"check_answer_label": "Household homeless immediately before letting",
"header": "Did the household experience homelessness immediately before this letting?",
"hint_text": "",
"type": "radio",
"answer_options": {
"11": {
3 years ago
"value": "Assessed by a local authority as homeless"
},
"1": {
"value": "No"
}
}
}
}
},
"previous_postcode": {
"header": "",
"description": "",
"questions": {
"ppcodenk": {
"header": "Do you know the postcode of the household’s last settled accommodation?",
"hint_text": "This is also known as the household’s ‘last settled home’.",
"type": "radio",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"ppostcode_full": [
0
]
},
"hidden_in_check_answers": {
"depends_on": [
{
"ppcodenk": 0
},
{
"ppcodenk": 1
}
]
}
},
"ppostcode_full": {
"check_answer_label": "Postcode of household’s last settled accommodation",
"header": "Postcode for the previous accommodation",
"hint_text": "",
"type": "text",
"width": 5,
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"inferred_answers": {
"prevloc": {
"is_previous_la_inferred": true
}
},
"inferred_check_answers_value": [{
"condition": {
"ppcodenk": 1
},
"value": "Not known"
}]
}
}
},
"previous_local_authority": {
"header": "",
"description": "",
"questions": {
"previous_la_known": {
"check_answer_label": "Do you know the local authority of the household’s last settled accommodation?",
"header": "Do you know the local authority of the household’s last settled accommodation?",
"hint_text": "This is also known as the household’s ‘last settled home’.",
"type": "radio",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"hidden_in_check_answers": {
"depends_on": [
{
"previous_la_known": 0
},
{
"previous_la_known": 1
}
]
},
"answer_options": {
"1": {
"value": "Yes"
},
"0": {
"value": "No"
}
},
"conditional_for": {
"prevloc": [
1
]
}
},
"prevloc": {
"check_answer_label": "Location of household’s last settled accommodation",
"header": "Select a local authority",
"hint_text": "Select ‘Northern Ireland’, ‘Scotland’, ‘Wales’ or ‘Outside the UK’ if the household’s last settled home was outside England.",
"type": "select",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"answer_options": {
"": "Select an option",
"S12000033": "Aberdeen City",
"S12000034": "Aberdeenshire",
"E07000223": "Adur",
"E07000026": "Allerdale",
"E07000032": "Amber Valley",
"S12000041": "Angus",
"N09000001": "Antrim and Newtownabbey",
"N09000011": "Ards and North Down",
"S12000035": "Argyll and Bute",
"N09000002": "Armagh City, Banbridge and Craigavon",
"E07000224": "Arun",
"E07000170": "Ashfield",
"E07000105": "Ashford",
"E07000200": "Babergh",
"E09000002": "Barking and Dagenham",
"E09000003": "Barnet",
"E08000016": "Barnsley",
"E07000027": "Barrow-in-Furness",
"E07000066": "Basildon",
"E07000084": "Basingstoke and Deane",
"E07000171": "Bassetlaw",
"E06000022": "Bath and North East Somerset",
"E06000055": "Bedford",
"N09000003": "Belfast",
"E09000004": "Bexley",
"E08000025": "Birmingham",
"E07000129": "Blaby",
"E06000008": "Blackburn with Darwen",
"E06000009": "Blackpool",
"W06000019": "Blaenau Gwent",
"E07000033": "Bolsover",
"E08000001": "Bolton",
"E07000136": "Boston",
"E06000058": "Bournemouth, Christchurch and Poole",
"E06000036": "Bracknell Forest",
"E08000032": "Bradford",
"E07000067": "Braintree",
"E07000143": "Breckland",
"E09000005": "Brent",
"E07000068": "Brentwood",
"W06000013": "Bridgend",
"E06000043": "Brighton and Hove",
"E06000023": "Bristol, City of",
"E07000144": "Broadland",
"E09000006": "Bromley",
"E07000234": "Bromsgrove",
"E07000095": "Broxbourne",
"E07000172": "Broxtowe",
"E06000060": "Buckinghamshire",
"E07000117": "Burnley",
"E08000002": "Bury",
"W06000018": "Caerphilly",
"E08000033": "Calderdale",
"E07000008": "Cambridge",
"E09000007": "Camden",
"E07000192": "Cannock Chase",
"E07000106": "Canterbury",
"W06000015": "Cardiff",
"E07000028": "Carlisle",
"W06000010": "Carmarthenshire",
"E07000069": "Castle Point",
"N09000004": "Causeway Coast and Glens",
"E06000056": "Central Bedfordshire",
"W06000008": "Ceredigion",
"E07000130": "Charnwood",
"E07000070": "Chelmsford",
"E07000078": "Cheltenham",
"E07000177": "Cherwell",
"E06000049": "Cheshire East",
"E06000050": "Cheshire West and Chester",
"E07000034": "Chesterfield",
"E07000225": "Chichester",
"E07000118": "Chorley",
"S12000036": "City of Edinburgh",
"E09000001": "City of London",
"S12000005": "Clackmannanshire",
"E07000071": "Colchester",
"W06000003": "Conwy",
"E07000029": "Copeland",
"E06000052": "Cornwall",
"E07000079": "Cotswold",
"E06000047": "County Durham",
"E08000026": "Coventry",
"E07000163": "Craven",
"E07000226": "Crawley",
"E09000008": "Croydon",
"E07000096": "Dacorum",
"E06000005": "Darlington",
"E07000107": "Dartford",
"W06000004": "Denbighshire",
"E06000015": "Derby",
"E07000035": "Derbyshire Dales",
"N09000005": "Derry City and Strabane",
"E08000017": "Doncaster",
"E06000059": "Dorset",
"E07000108": "Dover",
"E08000027": "Dudley",
"S12000006": "Dumfries and Galloway",
"S12000042": "Dundee City",
"E09000009": "Ealing",
"S12000008": "East Ayrshire",
"E07000009": "East Cambridgeshire",
"E07000040": "East Devon",
"S12000045": "East Dunbartonshire",
"E07000085": "East Hampshire",
"E07000242": "East Hertfordshire",
"E07000137": "East Lindsey",
"S12000010": "East Lothian",
"S12000011": "East Renfrewshire",
"E06000011": "East Riding of Yorkshire",
"E07000193": "East Staffordshire",
"E07000244": "East Suffolk",
"E07000061": "Eastbourne",
"E07000086": "Eastleigh",
"E07000030": "Eden",
"E07000207": "Elmbridge",
"E09000010": "Enfield",
"E07000072": "Epping Forest",
"E07000208": "Epsom and Ewell",
"E07000036": "Erewash",
"E07000041": "Exeter",
"S12000014": "Falkirk",
"E07000087": "Fareham",
"E07000010": "Fenland",
"N09000006": "Fermanagh and Omagh",
"S12000047": "Fife",
"W06000005": "Flintshire",
"E07000112": "Folkestone and Hythe",
"E07000080": "Forest of Dean",
"E07000119": "Fylde",
"E08000037": "Gateshead",
"E07000173": "Gedling",
"S12000049": "Glasgow City",
"E07000081": "Gloucester",
"E07000088": "Gosport",
"E07000109": "Gravesham",
"E07000145": "Great Yarmouth",
"E09000011": "Greenwich",
"E07000209": "Guildford",
"W06000002": "Gwynedd",
"E09000012": "Hackney",
"E06000006": "Halton",
"E07000164": "Hambleton",
"E09000013": "Hammersmith and Fulham",
"E07000131": "Harborough",
"E09000014": "Haringey",
"E07000073": "Harlow",
"E07000165": "Harrogate",
"E09000015": "Harrow",
"E07000089": "Hart",
"E06000001": "Hartlepool",
"E07000062": "Hastings",
"E07000090": "Havant",
"E09000016": "Havering",
"E06000019": "Herefordshire, County of",
"E07000098": "Hertsmere",
"E07000037": "High Peak",
"S12000017": "Highland",
"E09000017": "Hillingdon",
"E07000132": "Hinckley and Bosworth",
"E07000227": "Horsham",
"E09000018": "Hounslow",
"E07000011": "Huntingdonshire",
"E07000120": "Hyndburn",
"S12000018": "Inverclyde",
"E07000202": "Ipswich",
"W06000001": "Isle of Anglesey",
"E06000046": "Isle of Wight",
"E06000053": "Isles of Scilly",
"E09000019": "Islington",
"E09000020": "Kensington and Chelsea",
"E07000146": "King’s Lynn and West Norfolk",
"E06000010": "Kingston upon Hull, City of",
"E09000021": "Kingston upon Thames",
"E08000034": "Kirklees",
"E08000011": "Knowsley",
"E09000022": "Lambeth",
"E07000121": "Lancaster",
"E08000035": "Leeds",
"E06000016": "Leicester",
"E07000063": "Lewes",
"E09000023": "Lewisham",
"E07000194": "Lichfield",
"E07000138": "Lincoln",
"N09000007": "Lisburn and Castlereagh",
"E08000012": "Liverpool",
"E06000032": "Luton",
"E07000110": "Maidstone",
"E07000074": "Maldon",
"E07000235": "Malvern Hills",
"E08000003": "Manchester",
"E07000174": "Mansfield",
"E06000035": "Medway",
"E07000133": "Melton",
"E07000187": "Mendip",
"W06000024": "Merthyr Tydfil",
"E09000024": "Merton",
"E07000042": "Mid Devon",
"E07000203": "Mid Suffolk",
"E07000228": "Mid Sussex",
"N09000009": "Mid Ulster",
"N09000008": "Mid and East Antrim",
"E06000002": "Middlesbrough",
"S12000019": "Midlothian",
"E06000042": "Milton Keynes",
"E07000210": "Mole Valley",
"W06000021": "Monmouthshire",
"S12000020": "Moray",
"S12000013": "Na h-Eileanan Siar",
"W06000012": "Neath Port Talbot",
"E07000091": "New Forest",
"E07000175": "Newark and Sherwood",
"E08000021": "Newcastle upon Tyne",
"E07000195": "Newcastle-under-Lyme",
"E09000025": "Newham",
"W06000022": "Newport",
"N09000010": "Newry, Mourne and Down",
"S12000021": "North Ayrshire",
"E07000043": "North Devon",
"E07000038": "North East Derbyshire",
"E06000012": "North East Lincolnshire",
"E07000099": "North Hertfordshire",
"E07000139": "North Kesteven",
"S12000050": "North Lanarkshire",
"E06000013": "North Lincolnshire",
"E07000147": "North Norfolk",
"E06000061": "North Northamptonshire",
"E06000024": "North Somerset",
"E08000022": "North Tyneside",
"E07000218": "North Warwickshire",
"E07000134": "North West Leicestershire",
"E06000057": "Northumberland",
"E07000148": "Norwich",
"E06000018": "Nottingham",
"E07000219": "Nuneaton and Bedworth",
"E07000135": "Oadby and Wigston",
"E08000004": "Oldham",
"S12000023": "Orkney Islands",
"E07000178": "Oxford",
"W06000009": "Pembrokeshire",
"E07000122": "Pendle",
"S12000048": "Perth and Kinross",
"E06000031": "Peterborough",
"E06000026": "Plymouth",
"E06000044": "Portsmouth",
"W06000023": "Powys",
"E07000123": "Preston",
"E06000038": "Reading",
"E09000026": "Redbridge",
"E06000003": "Redcar and Cleveland",
"E07000236": "Redditch",
"E07000211": "Reigate and Banstead",
"S12000038": "Renfrewshire",
"W06000016": "Rhondda Cynon Taf",
"E07000124": "Ribble Valley",
"E09000027": "Richmond upon Thames",
"E07000166": "Richmondshire",
"E08000005": "Rochdale",
"E07000075": "Rochford",
"E07000125": "Rossendale",
"E07000064": "Rother",
"E08000018": "Rotherham",
"E07000220": "Rugby",
"E07000212": "Runnymede",
"E07000176": "Rushcliffe",
"E07000092": "Rushmoor",
"E06000017": "Rutland",
"E07000167": "Ryedale",
"E08000006": "Salford",
"E08000028": "Sandwell",
"E07000168": "Scarborough",
"S12000026": "Scottish Borders",
"E07000188": "Sedgemoor",
"E08000014": "Sefton",
"E07000169": "Selby",
"E07000111": "Sevenoaks",
"E08000019": "Sheffield",
"S12000027": "Shetland Islands",
"E06000051": "Shropshire",
"E06000039": "Slough",
"E08000029": "Solihull",
"E07000246": "Somerset West and Taunton",
"S12000028": "South Ayrshire",
"E07000012": "South Cambridgeshire",
"E07000039": "South Derbyshire",
"E06000025": "South Gloucestershire",
"E07000044": "South Hams",
"E07000140": "South Holland",
"E07000141": "South Kesteven",
"E07000031": "South Lakeland",
"S12000029": "South Lanarkshire",
"E07000149": "South Norfolk",
"E07000179": "South Oxfordshire",
"E07000126": "South Ribble",
"E07000189": "South Somerset",
"E07000196": "South Staffordshire",
"E08000023": "South Tyneside",
"E06000045": "Southampton",
"E06000033": "Southend-on-Sea",
"E09000028": "Southwark",
"E07000213": "Spelthorne",
"E07000240": "St Albans",
"E08000013": "St. Helens",
"E07000197": "Stafford",
"E07000198": "Staffordshire Moorlands",
"E07000243": "Stevenage",
"S12000030": "Stirling",
"E08000007": "Stockport",
"E06000004": "Stockton-on-Tees",
"E06000021": "Stoke-on-Trent",
"E07000221": "Stratford-on-Avon",
"E07000082": "Stroud",
"E08000024": "Sunderland",
"E07000214": "Surrey Heath",
"E09000029": "Sutton",
"E07000113": "Swale",
"W06000011": "Swansea",
"E06000030": "Swindon",
"E08000008": "Tameside",
"E07000199": "Tamworth",
"E07000215": "Tandridge",
"E07000045": "Teignbridge",
"E06000020": "Telford and Wrekin",
"E07000076": "Tendring",
"E07000093": "Test Valley",
"E07000083": "Tewkesbury",
"E07000114": "Thanet",
"E07000102": "Three Rivers",
"E06000034": "Thurrock",
"E07000115": "Tonbridge and Malling",
"E06000027": "Torbay",
"W06000020": "Torfaen",
"E07000046": "Torridge",
"E09000030": "Tower Hamlets",
"E08000009": "Trafford",
"E07000116": "Tunbridge Wells",
"E07000077": "Uttlesford",
"W06000014": "Vale of Glamorgan",
"E07000180": "Vale of White Horse",
"E08000036": "Wakefield",
"E08000030": "Walsall",
"E09000031": "Waltham Forest",
"E09000032": "Wandsworth",
"E06000007": "Warrington",
"E07000222": "Warwick",
"E07000103": "Watford",
"E07000216": "Waverley",
"E07000065": "Wealden",
"E07000241": "Welwyn Hatfield",
"E06000037": "West Berkshire",
"E07000047": "West Devon",
"S12000039": "West Dunbartonshire",
"E07000127": "West Lancashire",
"E07000142": "West Lindsey",
"S12000040": "West Lothian",
"E06000062": "West Northamptonshire",
"E07000181": "West Oxfordshire",
"E07000245": "West Suffolk",
"E09000033": "Westminster",
"E08000010": "Wigan",
"E06000054": "Wiltshire",
"E07000094": "Winchester",
"E06000040": "Windsor and Maidenhead",
"E08000015": "Wirral",
"E07000217": "Woking",
"E06000041": "Wokingham",
"E08000031": "Wolverhampton",
"E07000237": "Worcester",
"E07000229": "Worthing",
"W06000006": "Wrexham",
"E07000238": "Wychavon",
"E07000128": "Wyre",
"E07000239": "Wyre Forest",
"E06000014": "York",
"N92000002": "Northern Ireland",
"S92000003": "Scotland",
"W92000004": "Wales",
"9300000XX": "Outside UK"
},
"inferred_check_answers_value": [{
"condition": {
"previous_la_known": 0
},
"value": "Not known"
}]
}
},
"depends_on": [
{
"is_previous_la_inferred": false
}
]
},
"reasonable_preference": {
"header": "",
"description": "",
"questions": {
"reasonpref": {
"check_answer_label": "Household given reasonable preference",
"header": "Was the household given ‘reasonable preference’ by the local authority?",
"hint_text": "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority.",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"divider": {
"value": true
},
"3": {
"value": "Don’t know"
}
}
}
}
},
"reasonable_preference_reason": {
"header": "",
"description": "",
"questions": {
"reasonable_preference_reason": {
"check_answer_label": "Reason for reasonable preference",
"header": "Why was the household given ‘reasonable preference’?",
"hint_text": "Select all that apply.",
"type": "checkbox",
"answer_options": {
"rp_homeless": {
"value": "They were homeless or about to lose their home (within 56 days)"
},
"rp_insan_unsat": {
"value": "They were living in unsanitary, overcrowded or unsatisfactory housing"
},
"rp_medwel": {
"value": "They needed to move due to medical and welfare reasons (including disability)"
},
"rp_hardship": {
"value": "They needed to move to avoid hardship to themselves or others"
},
"divider": {
"value": true
},
"rp_dontknow": {
"value": "Don’t know"
}
}
}
},
"depends_on": [
{
"reasonpref": 1
}
]
},
"allocation_system": {
"header": "",
"description": "",
"questions": {
"letting_allocation": {
"check_answer_label": "Allocation system",
"header": "How was this letting allocated?",
"hint_text": "Select all that apply.",
"type": "checkbox",
"answer_options": {
"cbl": {
"value": "Choice-based lettings (CBL)"
},
"cap": {
"value": "Common Allocation Policy (CAP)"
},
"chr": {
"value": "Common housing register (CHR)"
},
"divider": {
"value": true
},
"letting_allocation_unknown": {
"value": "None of these allocation systems"
}
}
}
}
},
"referral": {
"header": "",
"description": "",
"questions": {
"referral": {
"check_answer_label": "Source of referral for letting",
"header": "What was the source of referral for this letting?",
"hint_text": "You told us that you are a local authority and that the needs type is general needs. We have removed some options because of this.",
"type": "radio",
"answer_options": {
"1": {
"value": "Internal transfer",
"hint": "Where the tenant has moved to another social property owned by the same landlord."
},
"2": {
"value": "Tenant applied directly (no referral or nomination)"
},
"8": {
"value": "Re-located through official housing mobility scheme"
},
"10": {
"value": "Other social landlord"
},
"9": {
"value": "Community learning disability team"
},
"14": {
"value": "Community mental health team"
},
"15": {
"value": "Health service"
},
"12": {
"value": "Police, probation or prison"
},
"7": {
"value": "Voluntary agency"
},
"13": {
"value": "Youth offending team"
},
"17": {
"value": "Children’s Social Care"
},
"16": {
"value": "Other"
}
}
}
},
"depends_on": [
{
"owning_organisation_provider_type": "LA",
"needstype": 1,
"renewal": 0
}
]
},
"referral_prp": {
"header": "",
"description": "",
"questions": {
"referral": {
"check_answer_label": "Source of referral for letting",
"header": "What was the source of referral for this letting?",
"hint_text": "You told us that the needs type is general needs. We have removed some options because of this.",
"type": "radio",
"answer_options": {
"1": {
"value": "Internal transfer",
"hint": "Where the tenant has moved to another social property owned by the same landlord."
},
"2": {
"value": "Tenant applied directly (no nomination)"
},
"3": {
"value": "Nominated by a local housing authority"
},
"4" : {
"value" : "Referred by local authority housing department"
},
"8": {
"value": "Re-located through official housing mobility scheme"
},
"10": {
"value": "Other social landlord"
},
"9": {
"value": "Community learning disability team"
},
"14": {
"value": "Community mental health team"
},
"15": {
"value": "Health service"
},
"12": {
"value": "Police, probation or prison"
},
"7": {
"value": "Voluntary agency"
},
"13": {
"value": "Youth offending team"
},
"17": {
"value": "Children’s Social Care"
},
"16": {
"value": "Other"
}
}
}
},
"depends_on": [
{
"owning_organisation_provider_type": "PRP",
"needstype": 1,
"renewal": 0
}
]
},
"referral_supported_housing": {
"header": "",
"description": "",
"questions": {
"referral": {
"check_answer_label": "Source of referral for letting",
"header": "What was the source of referral for this letting?",
"hint_text": "You told us that you are a local authority. We have removed some options because of this.",
"type": "radio",
"answer_options": {
"1": {
"value": "Internal transfer",
"hint": "Where the tenant has moved to another social property owned by the same landlord."
},
"2": {
"value": "Tenant applied directly (no referral)"
},
"3": {
"value": "Nominated by a local housing authority"
},
"8": {
"value": "Re-located through official housing mobility scheme"
},
"10": {
"value": "Other social landlord"
},
"9": {
"value": "Community learning disability team"
},
"14": {
"value": "Community mental health team"
},
"15": {
"value": "Health service"
},
"12": {
"value": "Police, probation or prison"
},
"7": {
"value": "Voluntary agency"
},
"13": {
"value": "Youth offending team"
},
"17": {
"value": "Children’s Social Care"
},
"16": {
"value": "Other"
}
}
}
},
"depends_on": [
{
"owning_organisation_provider_type": "LA",
"needstype": 2,
"renewal": 0
}
]
},
"referral_supported_housing_prp": {
"header": "",
"description": "",
"questions": {
"referral": {
"check_answer_label": "Source of referral for letting",
"header": "What was the source of referral for this letting?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Internal transfer",
"hint": "Where the tenant has moved to another social property owned by the same landlord."
},
"2": {
"value": "Tenant applied directly (no referral or nomination)"
},
"3": {
"value": "Nominated by a local housing authority"
},
"4": {
"value": "Referred by local authority housing department"
},
"8": {
"value": "Re-located through official housing mobility scheme"
},
"10": {
"value": "Other social landlord"
},
"9": {
"value": "Community learning disability team"
},
"14": {
"value": "Community mental health team"
},
"15": {
"value": "Health service"
},
"12": {
"value": "Police, probation or prison"
},
"7": {
"value": "Voluntary agency"
},
"13": {
"value": "Youth offending team"
},
"17": {
"value": "Children’s Social Care"
},
"16": {
"value": "Other"
}
}
}
},
"depends_on": [
{
"owning_organisation_provider_type": "PRP",
"needstype": 2,
"renewal": 0
}
]
},
"referral_value_check": {
"depends_on": [
{
"la_referral_for_general_needs?": true
}
],
"title_text": {
"translation": "soft_validations.referral.title_text"
},
"informative_text": {
"translation": "soft_validations.referral.hint_text",
"arguments": []
},
"questions": {
"referral_value_check": {
"check_answer_label": "Referral confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"referral_value_check": 0
},
{
"referral_value_check": 1
}
]
},
"header": "Are you sure?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"interruption_screen_question_ids": ["needstype", "referral"]
}
}
}
}
},
"rent_and_charges": {
"label": "Finances",
"subsections": {
"income_and_benefits": {
"label": "Income, benefits and outgoings",
"depends_on": [
{
"non_location_setup_questions_completed?": true
}
],
"pages": {
"income_known": {
"header": "Household’s combined income after tax",
"description": "",
"questions": {
"net_income_known": {
"check_answer_label": "Do you know the household’s combined income?",
"header": "Do you know the household’s combined income after tax?",
"top_guidance_partial": "what_counts_as_income",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
},
"divider_a": {
"value": true
},
"2": {
"value": "Tenant prefers not to say"
}
}
}
}
},
"income_amount": {
"depends_on": [
{
"net_income_known": 0
}
],
"header": "Total household income",
"description": "",
"questions": {
"earnings": {
"check_answer_label": "Total household income",
"header": "How much income does the household have in total?",
"top_guidance_partial": "what_counts_as_income",
"hint_text": "",
"type": "numeric",
"min": 0,
"step": 1,
"width": 5,
"prefix": "£",
"suffix": [
{
"label": " every week",
"depends_on": {
"incfreq": 1
}
},
{
"label": " every month",
"depends_on": {
"incfreq": 2
}
},
{
"label": " every year",
"depends_on": {
"incfreq": 3
}
}
]
},
"incfreq": {
"check_answer_label": "How often does the household receive this amount?",
"header": "How often does the household receive this amount?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Weekly"
},
"2": {
"value": "Monthly"
},
"3": {
"value": "Yearly"
}
},
"hidden_in_check_answers": true
}
}
},
"net_income_value_check": {
"depends_on": [
{
"net_income_soft_validation_triggered?": true
}
],
"title_text": {
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"translation": "soft_validations.net_income.title_text",
"arguments" :[
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "incfreq",
"label": true,
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"i18n_template": "incfreq"
},
{
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"key": "field_formatted_as_currency",
"arguments_for_key": "earnings",
"i18n_template": "earnings"
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"informative_text": {
"translation": "soft_validations.net_income.hint_text",
"arguments": [
{
"key": "net_income_higher_or_lower_text",
"label": false,
"i18n_template": "net_income_higher_or_lower_text"
}
]
},
"questions": {
"net_income_value_check": {
"check_answer_label": "Net income confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"net_income_value_check": 0
},
{
"net_income_value_check": 1
}
]
},
"header": "Are you sure this is correct?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["incfreq", "earnings", "ecstat1"]
},
"housing_benefit": {
"header": "",
"description": "",
"questions": {
"hb": {
"check_answer_label": "Housing-related benefits received",
"header": "Is the household likely to be receiving any of these housing-related benefits?",
"hint_text": "",
"type": "radio",
"answer_options": {
"1": {
"value": "Housing benefit"
},
"6": {
"value": "Universal Credit housing element"
},
"9": {
"value": "Neither"
},
"divider": {
"value": true
},
"3": {
"value": "Don’t know"
},
"10": {
"value": "Tenant prefers not to say"
}
}
}
}
},
"benefits_proportion": {
"header": "",
"description": "",
"questions": {
"benefits": {
"check_answer_label": "Household income from Universal Credit, state pension or benefits",
"header": "How much of the household’s income is from Universal Credit, state pensions or benefits?",
"hint_text": "This excludes child and housing benefit, council tax support and tax credits.",
"type": "radio",
"answer_options": {
"1": {
"value": "All"
},
"2": {
"value": "Some"
},
"3": {
"value": "None"
},
"divider": {
"value": true
},
"4": {
"value": "Don’t know"
}
}
}
}
},
"rent_or_other_charges": {
"header": "",
"description": "",
"questions": {
"household_charge": {
"check_answer_label": "Does the household pay rent or charges?",
"header": "Does the household pay rent or other charges for the accommodation?",
"hint_text": "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"depends_on": [
{
"needstype": 2
}
]
},
"rent_period": {
"header": "",
"description": "",
"questions": {
"period": {
"check_answer_label": "Frequency of household rent and charges",
"header": "How often does the household pay rent and other charges?",
"hint_text": "Select how often the household is charged. This may be different to how often they pay.",
"type": "radio",
"answer_options": {
"2": {
"value": "Every 2 weeks"
},
"3": {
"value": "Every 4 weeks"
},
"4": {
"value": "Every calendar month"
},
"9": {
"value": "Weekly for 46 weeks"
},
"8": {
"value": "Weekly for 47 weeks"
},
"7": {
"value": "Weekly for 48 weeks"
},
"6": {
"value": "Weekly for 49 weeks"
},
"5": {
"value": "Weekly for 50 weeks"
},
"1": {
"value": "Weekly for 52 weeks"
},
"10": {
"value": "Weekly for 53 weeks"
}
}
}
},
"depends_on": [
{
"needstype": 1
},
{
"needstype": 2,
"household_charge": 0
},
{
"needstype": 2,
"household_charge": null
}
]
},
"care_home_weekly": {
"header": "",
"description": "",
"questions": {
"is_carehome": {
"check_answer_label": "Care home accommodation",
"header": "Is this accommodation a care home?",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "No"
},
"1": {
"value": "Yes"
}
},
"conditional_for": {
"chcharge": [
1
]
}
},
"chcharge": {
"check_answer_label": "Care home charges",
"header": "How much does the household pay every week?",
"hint_text": "",
"type": "numeric",
"width": 5,
"step": 0.01,
"prefix": "£",
"suffix": " every week"
}
},
"depends_on": [
{
"rent_and_charges_paid_weekly?": true,
"is_supported_housing?": true,
"household_charge": 0
},
{
"rent_and_charges_paid_weekly?": true,
"is_supported_housing?": true,
"household_charge": null
}
]
},
"care_home_bi_weekly": {
"header": "",
"description": "",
"questions": {
"is_carehome": {
"check_answer_label": "Care home accommodation",
"header": "Is this accommodation a care home?",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "No"
},
"1": {
"value": "Yes"
}
},
"conditional_for": {
"chcharge": [
1
]
}
},
"chcharge": {
"check_answer_label": "Care home charges",
"header": "How much does the household pay every 2 weeks?",
"hint_text": "",
"type": "numeric",
"width": 5,
"step": 0.01,
"prefix": "£",
"suffix": " every 2 weeks"
}
},
"depends_on": [
{
"period": 2,
"needstype": 2,
"household_charge": 0
},
{
"period": 2,
"needstype": 2,
"household_charge": null
}
]
},
"care_home_4_weekly": {
"header": "",
"description": "",
"questions": {
"is_carehome": {
"check_answer_label": "Care home accommodation",
"header": "Is this accommodation a care home?",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "No"
},
"1": {
"value": "Yes"
}
},
"conditional_for": {
"chcharge": [
1
]
}
},
"chcharge": {
"check_answer_label": "Care home charges",
"header": "How much does the household pay every 4 weeks?",
"hint_text": "",
"type": "numeric",
"width": 5,
"step": 0.01,
"prefix": "£",
"suffix": " every 4 weeks"
}
},
"depends_on": [
{
"period": 3,
"needstype": 2,
"household_charge": 0
},
{
"period": 3,
"needstype": 2,
"household_charge": null
}
]
},
"care_home_monthly": {
"header": "",
"description": "",
"questions": {
"is_carehome": {
"check_answer_label": "Care home accommodation",
"header": "Is this accommodation a care home?",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": {
"value": "No"
},
"1": {
"value": "Yes"
}
},
"conditional_for": {
"chcharge": [
1
]
}
},
"chcharge": {
"check_answer_label": "Care home charges",
"header": "How much does the household pay every month?",
"hint_text": "",
"type": "numeric",
"width": 5,
"step": 0.01,
"prefix": "£",
"suffix": " every month"
}
},
"depends_on": [
{
"period": 4,
"needstype": 2,
"household_charge": 0
},
{
"period": 4,
"needstype": 2,
"household_charge": null
}
]
},
"care_home_charges_value_check": {
"depends_on": [
{
"care_home_charge_expected_not_provided?": true
}
],
"title_text": {
"translation": "soft_validations.care_home_charges.title_text"
},
"informative_text": {},
"questions": {
"carehome_charges_value_check": {
"check_answer_label": "Care home charges confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"carehome_charges_value_check": 0
},
{
"carehome_charges_value_check": 1
}
]
},
"header": "Are you sure there are no care home charges?",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["chcharge", "is_carehome"]
},
"rent_weekly": {
"header": "Household rent and charges",
"description": "",
"questions": {
"brent": {
"check_answer_label": "Basic rent",
"header": "What is the basic rent?",
"hint_text": "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every week",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"scharge": {
"check_answer_label": "Service charge",
"header": "What is the service charge?",
"hint_text": "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every week",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"pscharge": {
"check_answer_label": "Personal service charge",
"header": "What is the personal service charge?",
"hint_text": "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every week",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"supcharg": {
"check_answer_label": "Support charge",
"header": "What is the support charge?",
"hint_text": "Any charges made to fund support services included in tenancy agreement.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every week",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"tcharge": {
"check_answer_label": "Household rent and charges",
"header": "Total charge",
"hint_text": "This is the total for rent and all charges.",
"type": "numeric_output",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every week",
"readonly": true,
"requires_js": true,
"fields_added": [
"brent",
"scharge",
"pscharge",
"supcharg"
]
}
},
"depends_on": [
{
"rent_and_charges_paid_weekly?": true,
"household_charge": 0,
"is_carehome?": false
},
{
"rent_and_charges_paid_weekly?": true,
"household_charge": null,
"is_carehome?": false
}
]
},
"rent_bi_weekly": {
"header": "Household rent and charges",
"description": "",
"questions": {
"brent": {
"check_answer_label": "Basic rent",
"header": "What is the basic rent?",
"hint_text": "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 2 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"scharge": {
"check_answer_label": "Service charge",
"header": "What is the service charge?",
"hint_text": "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 2 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"pscharge": {
"check_answer_label": "Personal service charge",
"header": "What is the personal service charge?",
"hint_text": "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 2 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"supcharg": {
"check_answer_label": "Support charge",
"header": "What is the support charge?",
"hint_text": "Any charges made to fund support services included in tenancy agreement.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 2 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"tcharge": {
"check_answer_label": "Household rent and charges",
"header": "Total charge",
"hint_text": "This is the total for rent and all charges.",
"type": "numeric_output",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 2 weeks",
"readonly": true,
"requires_js": true,
"fields_added": [
"brent",
"scharge",
"pscharge",
"supcharg"
]
}
},
"depends_on": [
{
"household_charge": 0,
"period": 2,
"is_carehome": 0
},
{
"household_charge": null,
"period": 2,
"is_carehome": 0
},
{
"household_charge": 0,
"period": 2,
"is_carehome": null
},
{
"household_charge": null,
"period": 2,
"is_carehome": null
}
]
},
"rent_4_weekly": {
"header": "Household rent and charges",
"description": "",
"questions": {
"brent": {
"check_answer_label": "Basic rent",
"header": "What is the basic rent?",
"hint_text": "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 4 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"scharge": {
"check_answer_label": "Service charge",
"header": "What is the service charge?",
"hint_text": "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 4 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"pscharge": {
"check_answer_label": "Personal service charge",
"header": "What is the personal service charge?",
"hint_text": "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 4 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"supcharg": {
"check_answer_label": "Support charge",
"header": "What is the support charge?",
"hint_text": "Any charges made to fund support services included in tenancy agreement.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 4 weeks",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"tcharge": {
"check_answer_label": "Household rent and charges",
"header": "Total charge",
"hint_text": "This is the total for rent and all charges.",
"type": "numeric_output",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every 4 weeks",
"readonly": true,
"requires_js": true,
"fields_added": [
"brent",
"scharge",
"pscharge",
"supcharg"
]
}
},
"depends_on": [
{
"household_charge": 0,
"period": 3,
"is_carehome": 0
},
{
"household_charge": null,
"period": 3,
"is_carehome": 0
},
{
"household_charge": 0,
"period": 3,
"is_carehome": null
},
{
"household_charge": null,
"period": 3,
"is_carehome": null
}
]
},
"rent_monthly": {
"header": "Household rent and charges",
"description": "",
"questions": {
"brent": {
"check_answer_label": "Basic rent",
"header": "What is the basic rent?",
"hint_text": "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every month",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"scharge": {
"check_answer_label": "Service charge",
"header": "What is the service charge?",
"hint_text": "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every month",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"pscharge": {
"check_answer_label": "Personal service charge",
"header": "What is the personal service charge?",
"hint_text": "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every month",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"supcharg": {
"check_answer_label": "Support charge",
"header": "What is the support charge?",
"hint_text": "Any charges made to fund support services included in tenancy agreement.",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every month",
"fields-to-add": [
"brent",
"scharge",
"pscharge",
"supcharg"
],
"result-field": "tcharge",
"hidden_in_check_answers": true
},
"tcharge": {
"check_answer_label": "Household rent and charges",
"header": "Total charge",
"hint_text": "This is the total for rent and all charges.",
"type": "numeric_output",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": " every month",
"readonly": true,
"requires_js": true,
"fields_added": [
"brent",
"scharge",
"pscharge",
"supcharg"
]
}
},
"depends_on": [
{
"household_charge": 0,
"period": 4,
"is_carehome": 0
},
{
"household_charge": null,
"period": 4,
"is_carehome": 0
},
{
"household_charge": 0,
"period": 4,
"is_carehome": null
},
{
"household_charge": null,
"period": 4,
"is_carehome": null
}
]
},
"min_rent_value_check": {
"depends_on": [
{
"rent_in_soft_min_range?": true
}
],
"title_text": {
"translation": "soft_validations.rent.outside_range_title",
"arguments": [
{
"key": "brent",
"label": true,
"i18n_template": "brent"
}
]
},
"informative_text": {},
"questions": {
"rent_value_check": {
"check_answer_label": "Total rent confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"rent_value_check": 0
},
{
"rent_value_check": 1
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"header": "Are you sure this is correct?",
"hint_text": "This is lower than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["brent", "period", "startdate", "la", "beds", "rent_type", "needstype"]
},
"max_rent_value_check": {
"depends_on": [
{
"rent_in_soft_max_range?": true
}
],
"title_text": {
"translation": "soft_validations.rent.outside_range_title",
"arguments": [
{
"key": "brent",
"label": true,
"i18n_template": "brent"
}
]
},
"informative_text": {},
"questions": {
"rent_value_check": {
"check_answer_label": "Total rent confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"rent_value_check": 0
},
{
"rent_value_check": 1
}
]
},
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
"header": "Are you sure this is correct?",
"hint_text": "This is higher than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
CLDC-2248 Improve soft validations (#1584) * Update interruption screen page * Update routing and add flash * Only display routed to affected questions * Add affected_question_ids to pregnancy check * lint * Add skip link and lint * Move affected_question_ids to page, because we reuse questions so they might have different affected_question_ids * typo * Fix button wording * Update action href links * Change how we route back to interruption screen * Update affected_question_ids for lettings * Update sales soft validations * Update title texts * Update styling * Update is_referrer_interruption_screen? check and naming * Add interuption screen helper specs * Add request test for fixing soft validation * Add tests for geting soft validation page * Extract interruption screen banner * Update action_href to be reusable * Extract questions out of check answers summary list * Reuse check_answers_summary_list for interruption screen * refactor string parse * Rename attribute * fix test * Add tests for sales paths * typo * Update validation message: void date, major repairs date * Update validation message: rent_value_check, 2022 * Update validation message: buyer live in * Update validation message: staircase * Update validation message: purchase price * Update validation message: income * Update validation message: savings * Update validation message: extra borrowing * Update validation message: extra borrowing * Update validation message: wheelchair * Update validation message: monthly charge * Update validation message: mortgage * Update validation message: old persons shared ownership * Update validation message: discount * Update validation: min retirement * Wording in tests and time test * Update missing question * Refactor is referrer methods * Update validation message: net income * Update validation message: deposit and savings * Update validation message: mortgage, discount and deposit * Fix test validation messages * Fix the retirement check showing on the card 8, fix tests * test * return the user back to the check_your_answers after fixing a validation from check_your_anwers * pr comments
2 years ago
},
"interruption_screen_question_ids": ["brent", "period", "startdate", "la", "beds", "rent_type", "needstype"]
},
"scharge_value_check": {
"depends_on": [
{
"scharge_over_soft_max?": true
}
],
"title_text": {
"translation": "soft_validations.scharge.over_soft_max_title",
"arguments": [
{
"key": "scharge",
"label": true,
"i18n_template": "scharge"
}
]
},
"informative_text": {},
"questions": {
"scharge_value_check": {
"check_answer_label": "Service charge confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"scharge_value_check": 0
},
{
"scharge_value_check": 1
}
]
},
"header": "Are you sure?",
"hint_text": "This is higher than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the needs type</li></ul>",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"interruption_screen_question_ids": ["period", "needstype", "scharge"]
},
"pscharge_value_check": {
"depends_on": [
{
"pscharge_over_soft_max?": true
}
],
"title_text": {
"translation": "soft_validations.pscharge.over_soft_max_title",
"arguments": [
{
"key": "pscharge",
"label": true,
"i18n_template": "pscharge"
}
]
},
"informative_text": {},
"questions": {
"pscharge_value_check": {
"check_answer_label": "Personal service charge confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"pscharge_value_check": 0
},
{
"pscharge_value_check": 1
}
]
},
"header": "Are you sure?",
"hint_text": "This is higher than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the needs type</li></ul>",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"interruption_screen_question_ids": ["period", "needstype", "pscharge"]
},
"supcharg_value_check": {
"depends_on": [
{
"supcharg_over_soft_max?": true
}
],
"title_text": {
"translation": "soft_validations.supcharg.over_soft_max_title",
"arguments": [
{
"key": "supcharg",
"label": true,
"i18n_template": "supcharg"
}
]
},
"informative_text": {},
"questions": {
"supcharg_value_check": {
"check_answer_label": "Support charge confirmation",
"hidden_in_check_answers": {
"depends_on": [
{
"supcharg_value_check": 0
},
{
"supcharg_value_check": 1
}
]
},
"header": "Are you sure?",
"hint_text": "This is higher than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the needs type</li></ul>",
"type": "interruption_screen",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
}
}
},
"interruption_screen_question_ids": ["period", "needstype", "supcharg"]
},
"outstanding": {
"header": "",
"description": "",
"questions": {
"hbrentshortfall": {
"check_answer_label": "Any outstanding amount for basic rent and charges",
"header": "After the household has received any housing-related benefits, will they still need to pay for rent and charges?",
"hint_text": "Also known as the ‘outstanding amount’.",
"type": "radio",
"answer_options": {
"1": {
"value": "Yes"
},
"2": {
"value": "No"
},
"3": {
"value": "Don’t know"
}
}
}
},
"depends_on": [
{
"hb": 1,
"household_charge": 0
},
{
"hb": 1,
"household_charge": null
},
{
"hb": 6,
"household_charge": 0
},
{
"hb": 6,
"household_charge": null
}
]
},
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
"tshortfall_known": {
"check_answer_label": "Do you know the outstanding amount?",
"header": "Can you estimate the outstanding amount?",
"hint_text": "You only need to give an approximate figure.",
"type": "radio",
"answer_options": {
"0": {
"value": "Yes"
},
"1": {
"value": "No"
}
},
"conditional_for": {
"tshortfall": [
0
]
}
},
"tshortfall": {
"check_answer_label": "Estimated outstanding amount",
"header": "Estimated outstanding amount",
"type": "numeric",
"min": 0,
"step": 0.01,
"width": 5,
"prefix": "£",
"suffix": [
{
"label": " every 2 weeks",
"depends_on": {
"period": 2
}
},
{
"label": " every 4 weeks",
"depends_on": {
"period": 3
}
},
{
"label": " every calendar month",
"depends_on": {
"period": 4
}
},
{
"label": " every week for 50 weeks",
"depends_on": {
"period": 5
}
},
{
"label": " every week for 49 weeks",
"depends_on": {
"period": 6
}
},
{
"label": " every week for 48 weeks",
"depends_on": {
"period": 7
}
},
{
"label": " every week for 47 weeks",
"depends_on": {
"period": 8
}
},
{
"label": " every week for 46 weeks",
"depends_on": {
"period": 9
}
},
{
"label": " every week for 52 weeks",
"depends_on": {
"period": 1
}
},
{
"label": " every week for 53 weeks",
"depends_on": {
"period": 10
}
}
]
}
},
"depends_on": [
{
"hb": 1,
"hbrentshortfall": 1
},
{
"hb": 6,
"hbrentshortfall": 1
}
]
}
}
}
}
}
}
}