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.
20 lines
908 B
20 lines
908 B
class Form::Sales::Questions::Staircase < ::Form::Question |
|
def initialize(id, hsh, page) |
|
super |
|
@id = "staircase" |
|
@check_answer_label = "Staircasing transaction" |
|
@header = "Is this a staircasing transaction?" |
|
@type = "radio" |
|
@answer_options = ANSWER_OPTIONS |
|
@hint_text = "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property" |
|
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] |
|
end |
|
|
|
ANSWER_OPTIONS = { |
|
"1" => { "value" => "Yes" }, |
|
"2" => { "value" => "No" }, |
|
"3" => { "value" => "Don’t know" }, |
|
}.freeze |
|
|
|
QUESTION_NUMBER_FROM_YEAR = { 2023 => 76, 2024 => 78 }.freeze |
|
end
|
|
|