chore: extract question hint for uk_addresses

This commit is contained in:
Pieter Vander Vennet 2023-03-08 03:21:14 +01:00
parent 7397d633df
commit 56d3ddfedc

View file

@ -256,7 +256,7 @@
"id": "uk_addresses_unit", "id": "uk_addresses_unit",
"render": "<div class='subtle'>Sub-unit (e.g. 1, Flat 2, Unit C)</div><div><b>{addr:unit}</b></div>", "render": "<div class='subtle'>Sub-unit (e.g. 1, Flat 2, Unit C)</div><div><b>{addr:unit}</b></div>",
"question": { "question": {
"en": "What is the sub-unit for this address? <div class='subtle'>Some named building or large complexes are split into sub-units</div>" "en": "What is the sub-unit for this address? "
}, },
"freeform": { "freeform": {
"key": "addr:unit", "key": "addr:unit",
@ -290,6 +290,9 @@
"addr:housename~*", "addr:housename~*",
"addr:substreet~*" "addr:substreet~*"
] ]
},
"questionHint": {
"en": "Some named building or large complexes are split into sub-units"
} }
}, },
{ {
@ -373,7 +376,7 @@
{ {
"id": "uk_addresses_placename", "id": "uk_addresses_placename",
"question": { "question": {
"en": "What is the place or locality for this address?<div class='subtle'>This is additional information that appears before (or instead of) a street name in the address</div>" "en": "What is the place or locality for this address?"
}, },
"render": { "render": {
"en": "<div class='subtle'>Place (e.g. Castle Mews, West Business Park)</div><div><b>{addr:substreet}</b></div>" "en": "<div class='subtle'>Place (e.g. Castle Mews, West Business Park)</div><div><b>{addr:substreet}</b></div>"
@ -413,12 +416,15 @@
"hideInAnswer": true "hideInAnswer": true
} }
], ],
"condition": "addr:parentstreet=" "condition": "addr:parentstreet=",
"questionHint": {
"en": "This is additional information that appears before (or instead of) a street name in the address"
}
}, },
{ {
"id": "uk_addresses_placename_with_parent", "id": "uk_addresses_placename_with_parent",
"question": { "question": {
"en": "What is the place or locality for this address?<div class='subtle'>This is additional information that appears before (or instead of) a street name in the address</div>" "en": "What is the place or locality for this address?"
}, },
"render": { "render": {
"en": "<div class='subtle'>Place (e.g. Castle Mews, West Business Park)</div><div><b>{addr:substreet}</b></div>" "en": "<div class='subtle'>Place (e.g. Castle Mews, West Business Park)</div><div><b>{addr:substreet}</b></div>"
@ -472,6 +478,9 @@
] ]
} }
] ]
},
"questionHint": {
"en": "This is additional information that appears before (or instead of) a street name in the address"
} }
}, },
{ {
@ -527,7 +536,7 @@
"id": "uk_addresses_parentstreet", "id": "uk_addresses_parentstreet",
"render": "<div class='subtle'>Parent street name</div><div><b>{addr:parentstreet}</b></div>", "render": "<div class='subtle'>Parent street name</div><div><b>{addr:parentstreet}</b></div>",
"question": { "question": {
"en": "What is the parent street name for this address?<div class='subtle'>This street name will appear after the place name or first street name in the address</div>" "en": "What is the parent street name for this address?"
}, },
"freeform": { "freeform": {
"key": "addr:parentstreet", "key": "addr:parentstreet",
@ -592,6 +601,9 @@
"addr:parentstreet~*", "addr:parentstreet~*",
"addr:substreet~*" "addr:substreet~*"
] ]
},
"questionHint": {
"en": "This street name will appear after the place name or first street name in the address"
} }
}, },
{ {