Browse Source
# Conflicts: # config/locales/en.yml # config/locales/validations/lettings/setup.en.ymlpull/2744/head
261 changed files with 2047 additions and 1127 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 |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue