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.
56 lines
1.7 KiB
56 lines
1.7 KiB
# added in 2026 |
|
class Form::Lettings::Questions::ReferralRegister < ::Form::Question |
|
def initialize(id, hsh, page, provider_type) |
|
super(id, hsh, page) |
|
@id = "referral_register" |
|
@copy_key = "lettings.household_situation.referral.register" |
|
@type = "radio" |
|
@check_answers_card_number = 0 |
|
@provider_type = provider_type |
|
@question_number = get_question_number_from_hash(QUESTION_NUMBER_FROM_YEAR) |
|
@question_number += 1 if @provider_type == :prp |
|
end |
|
|
|
def answer_options |
|
if @provider_type == :la |
|
{ |
|
"1" => { |
|
"value" => "Renewal to the same tenant in the same property", |
|
}, |
|
"2" => { |
|
"value" => "Internal transfer from another property owned by the same local authority - for existing social tenants only", |
|
}, |
|
"3" => { |
|
"value" => "From a housing register (waiting list)", |
|
}, |
|
"4" => { |
|
"value" => "Tenant applied directly (not via a nomination or housing register)", |
|
}, |
|
}.freeze |
|
else |
|
{ |
|
"5" => { |
|
"value" => "Renewal to the same tenant in the same property", |
|
}, |
|
"6" => { |
|
"value" => "From a local authority housing register (waiting list) or a register with local authority involvement", |
|
}, |
|
"7" => { |
|
"value" => "From a housing register (waiting list) with no local authority involvement", |
|
}, |
|
"8" => { |
|
"value" => "Tenant applied directly (not via a nomination or waiting list)", |
|
}, |
|
"9" => { |
|
"value" => "Don't know", |
|
}, |
|
}.freeze |
|
end |
|
end |
|
|
|
def derived?(log) |
|
log.is_renewal? |
|
end |
|
|
|
QUESTION_NUMBER_FROM_YEAR = { 2026 => 91 }.freeze |
|
end
|
|
|