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.
36 lines
1.1 KiB
36 lines
1.1 KiB
2 months ago
|
class Form::Lettings::Pages::RentValueCheck < ::Form::Page
|
||
|
def initialize(id, hsh, subsection, check_answers_card_number: nil)
|
||
|
super(id, hsh, subsection)
|
||
|
@depends_on = [{ "rent_soft_validation_triggered?" => true }]
|
||
|
@title_text = {
|
||
|
"translation" => "soft_validations.rent.outside_range_title",
|
||
|
"arguments" => [
|
||
|
{
|
||
|
"key" => "brent",
|
||
|
"label" => true,
|
||
|
"i18n_template" => "brent",
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
@informative_text = {
|
||
|
"translation" => "soft_validations.rent.informative_text",
|
||
|
"arguments" => [
|
||
|
{
|
||
|
"key" => "rent_soft_validation_higher_or_lower_text",
|
||
|
"label" => false,
|
||
|
"i18n_template" => "higher_or_lower",
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
@check_answers_card_number = check_answers_card_number
|
||
|
end
|
||
|
|
||
|
def questions
|
||
|
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)]
|
||
|
end
|
||
|
|
||
|
def interruption_screen_question_ids
|
||
|
%w[brent period startdate uprn postcode_full la beds rent_type needstype]
|
||
|
end
|
||
|
end
|