20 changed files with 180 additions and 76 deletions
@ -1,14 +0,0 @@ |
|||||||
class Form::Lettings::Pages::PropertyPostcode < ::Form::Page |
|
||||||
def initialize(id, hsh, subsection) |
|
||||||
super |
|
||||||
@id = "property_postcode" |
|
||||||
@depends_on = [{ "is_general_needs?" => true }] |
|
||||||
end |
|
||||||
|
|
||||||
def questions |
|
||||||
@questions ||= [ |
|
||||||
Form::Lettings::Questions::PostcodeKnown.new(nil, nil, self), |
|
||||||
Form::Lettings::Questions::PostcodeFull.new(nil, nil, self), |
|
||||||
] |
|
||||||
end |
|
||||||
end |
|
@ -1,15 +0,0 @@ |
|||||||
class Form::Lettings::Questions::PostcodeFull < ::Form::Question |
|
||||||
def initialize(id, hsh, page) |
|
||||||
super |
|
||||||
@id = "postcode_full" |
|
||||||
@check_answer_label = "Postcode" |
|
||||||
@header = "What is the property’s postcode?" |
|
||||||
@type = "text" |
|
||||||
@width = 5 |
|
||||||
@inferred_check_answers_value = [{ "condition" => { "postcode_known" => 0 }, "value" => "Not known" }] |
|
||||||
@check_answers_card_number = 0 |
|
||||||
@hint_text = "" |
|
||||||
@inferred_answers = { "la" => { "is_la_inferred" => true } } |
|
||||||
@disable_clearing_if_not_routed_or_dynamic_answer_options = true |
|
||||||
end |
|
||||||
end |
|
@ -1,17 +0,0 @@ |
|||||||
class Form::Lettings::Questions::PostcodeKnown < ::Form::Question |
|
||||||
def initialize(id, hsh, page) |
|
||||||
super |
|
||||||
@id = "postcode_known" |
|
||||||
@check_answer_label = "Do you know the property postcode?" |
|
||||||
@header = "Do you know the property’s postcode?" |
|
||||||
@type = "radio" |
|
||||||
@check_answers_card_number = 0 |
|
||||||
@hint_text = "" |
|
||||||
@answer_options = ANSWER_OPTIONS |
|
||||||
@disable_clearing_if_not_routed_or_dynamic_answer_options = true |
|
||||||
@conditional_for = { "postcode_full" => [1] } |
|
||||||
@hidden_in_check_answers = { "depends_on" => [{ "postcode_known" => 0 }, { "postcode_known" => 1 }] } |
|
||||||
end |
|
||||||
|
|
||||||
ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "0" => { "value" => "No" } }.freeze |
|
||||||
end |
|
@ -0,0 +1,74 @@ |
|||||||
|
en: |
||||||
|
forms: |
||||||
|
2023: |
||||||
|
lettings: |
||||||
|
property_information: |
||||||
|
uprn: |
||||||
|
page_header: "" |
||||||
|
uprn_known: |
||||||
|
check_answer_label: "UPRN known?" |
||||||
|
hint_text: "The Unique Property Reference Number (UPRN) is a unique number system created by Ordnance Survey and used by housing providers and various industries across the UK. An example UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen." |
||||||
|
question_text: "Do you know the property's UPRN?" |
||||||
|
uprn: |
||||||
|
check_answer_label: "UPRN" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What is the property's UPRN?" |
||||||
|
|
||||||
|
uprn_confirmed: |
||||||
|
page_header: "We found an address that might be this property" |
||||||
|
check_answer_label: "Is this the right address?" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Is this the property address?" |
||||||
|
|
||||||
|
address: |
||||||
|
page_header: "Q12 - What is the property's address?" |
||||||
|
address_line1: |
||||||
|
check_answer_label: "Address lines 1 and 2" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Address line 1" |
||||||
|
address_line2: |
||||||
|
check_answer_label: "" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Address line 2 (optional)" |
||||||
|
town_or_city: |
||||||
|
check_answer_label: "Town or city" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Town or city" |
||||||
|
county: |
||||||
|
check_answer_label: "County" |
||||||
|
hint_text: "" |
||||||
|
question_text: "County (optional)" |
||||||
|
postcode_full: |
||||||
|
check_answer_label: "Postcode" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Postcode" |
||||||
|
|
||||||
|
la: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Local authority" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What is the property’s local authority?" |
||||||
|
|
||||||
|
beds: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Number of bedrooms" |
||||||
|
hint_text: "A bedsit has 1 bedroom." |
||||||
|
question_text: "How many bedrooms does the property have?" |
||||||
|
|
||||||
|
proptype: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Type of unit" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What type of unit is the property?" |
||||||
|
|
||||||
|
builtype: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Type of building" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What type of building is the property?" |
||||||
|
|
||||||
|
wchair: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Property built or adapted to wheelchair-user standards" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Is the property built or adapted to wheelchair-user standards?" |
@ -0,0 +1,92 @@ |
|||||||
|
en: |
||||||
|
forms: |
||||||
|
2024: |
||||||
|
lettings: |
||||||
|
property_information: |
||||||
|
uprn: |
||||||
|
page_header: "" |
||||||
|
uprn_known: |
||||||
|
check_answer_label: "UPRN known?" |
||||||
|
hint_text: "The Unique Property Reference Number (UPRN) is a unique number system created by Ordnance Survey and used by housing providers and various industries across the UK. An example UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen." |
||||||
|
question_text: "Do you know the property's UPRN?" |
||||||
|
uprn: |
||||||
|
check_answer_label: "UPRN" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What is the property's UPRN?" |
||||||
|
|
||||||
|
uprn_confirmed: |
||||||
|
page_header: "We found an address that might be this property" |
||||||
|
check_answer_label: "Is this the right address?" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Is this the property address?" |
||||||
|
|
||||||
|
address_matcher: |
||||||
|
page_header: "Find an address" |
||||||
|
address_line1_input: |
||||||
|
check_answer_label: "Find address" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Address line 1" |
||||||
|
postcode_full_input: |
||||||
|
check_answer_label: "" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Postcode" |
||||||
|
|
||||||
|
uprn_selection: |
||||||
|
page_header: "We found an address that might be this property" |
||||||
|
check_answer_label: "Select the correct address" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Select the correct address" |
||||||
|
|
||||||
|
address: |
||||||
|
page_header: "Q12 - What is the property's address?" |
||||||
|
address_line1: |
||||||
|
check_answer_label: "Address lines 1 and 2" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Address line 1" |
||||||
|
address_line2: |
||||||
|
check_answer_label: "" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Address line 2 (optional)" |
||||||
|
town_or_city: |
||||||
|
check_answer_label: "Town or city" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Town or city" |
||||||
|
county: |
||||||
|
check_answer_label: "County" |
||||||
|
hint_text: "" |
||||||
|
question_text: "County (optional)" |
||||||
|
postcode_full: |
||||||
|
check_answer_label: "Postcode" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Postcode" |
||||||
|
|
||||||
|
la: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Local authority" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What is the property’s local authority?" |
||||||
|
|
||||||
|
beds: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Number of bedrooms" |
||||||
|
hint_text: "A bedsit has 1 bedroom." |
||||||
|
question_text: "How many bedrooms does the property have?" |
||||||
|
|
||||||
|
proptype: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Type of unit" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What type of unit is the property?" |
||||||
|
|
||||||
|
builtype: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Type of building" |
||||||
|
hint_text: "" |
||||||
|
question_text: "What type of building is the property?" |
||||||
|
|
||||||
|
wchair: |
||||||
|
page_header: "" |
||||||
|
check_answer_label: "Property built or adapted to wheelchair-user standards" |
||||||
|
hint_text: "" |
||||||
|
question_text: "Is the property built or adapted to wheelchair-user standards?" |
||||||
|
|
Loading…
Reference in new issue