Submit social housing lettings and sales data (CORE)
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.
|
|
|
class Form::Sales::Questions::RetirementValueCheck < ::Form::Question
|
|
|
|
def initialize(id, hsh, page, person_index:)
|
|
|
|
super(id, hsh, page)
|
|
|
|
@id = "retirement_value_check"
|
|
|
|
@copy_key = "sales.soft_validations.retirement_value_check.min"
|
|
|
|
@type = "interruption_screen"
|
|
|
|
@answer_options = {
|
|
|
|
"0" => { "value" => "Yes" },
|
|
|
|
"1" => { "value" => "No" },
|
|
|
|
}
|
|
|
|
@hidden_in_check_answers = {
|
|
|
|
"depends_on" => [
|
|
|
|
{
|
|
|
|
"retirement_value_check" => 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"retirement_value_check" => 1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
@check_answers_card_number = person_index
|
|
|
|
end
|
|
|
|
end
|