@ -3,15 +3,32 @@ class Form::Lettings::Questions::Renewal < ::Form::Question
super
super
@id="renewal"
@id="renewal"
@check_answer_label="Property renewal"
@check_answer_label="Property renewal"
@header="Is this letting a renewal?"
@header=header_text
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="A renewal is a letting to the same tenant in the same property. If the property was previously being used as temporary accommodation, then answer 'no'"
@hint_text=hint_text
@question_number=4
@question_number=4
end
end
ANSWER_OPTIONS={
ANSWER_OPTIONS={
"1"=>{"value"=>"Yes"},
"1"=>{"value"=>"Yes"},
"0"=>{"value"=>"No"},
"0"=>{"value"=>"No"},
}.freeze
}
.freeze
defheader_text
ifform.start_year_after_2024?
"Is this letting a renewal of social housing to the same tenant in the same property?"
else
"Is this letting a renewal?"
end
end
defhint_text
ifform.start_year_after_2024?
"If the property was previously being used as temporary accommodation, then answer 'no'"
else
"A renewal is a letting to the same tenant in the same property. If the property was previously being used as temporary accommodation, then answer 'no'"