class Form::Lettings::Pages::SupchargValueCheck < ::Form::Page def initialize(id, hsh, subsection) super @id = "supcharg_value_check" @depends_on = [{ "supcharg_in_soft_max_range?" => true }] @title_text = { "translation" => "soft_validations.supcharg.over_soft_max_title", "arguments" => [{ "key" => "supcharg", "label" => true, "i18n_template" => "supcharg", }], } @informative_text = I18n.t("soft_validations.charges.informative_text") end def questions @questions ||= [Form::Lettings::Questions::SupchargValueCheck.new(nil, nil, self)] end def interruption_screen_question_ids %w[period needstype supcharg] end end