6 changed files with 99 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
class Form::Lettings::Pages::PschargeValueCheck < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "pscharge_value_check" |
||||||
|
@depends_on = [{ "pscharge_over_soft_max?" => true }] |
||||||
|
@title_text = { |
||||||
|
"translation" => "soft_validations.pscharge.title_text", |
||||||
|
} |
||||||
|
@informative_text = "" |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::PschargeValueCheck.new(nil, nil, self)] |
||||||
|
end |
||||||
|
|
||||||
|
def interruption_screen_question_ids |
||||||
|
%w[period needstype pscharge] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,19 @@ |
|||||||
|
class Form::Lettings::Pages::SchargeValueCheck < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "scharge_value_check" |
||||||
|
@depends_on = [{ "scharge_over_soft_max?" => true }] |
||||||
|
@title_text = { |
||||||
|
"translation" => "soft_validations.scharge.title_text", |
||||||
|
} |
||||||
|
@informative_text = "" |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::SchargeValueCheck.new(nil, nil, self)] |
||||||
|
end |
||||||
|
|
||||||
|
def interruption_screen_question_ids |
||||||
|
%w[period needstype scharge] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,19 @@ |
|||||||
|
class Form::Lettings::Pages::SupchargValueCheck < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "supcharg_value_check" |
||||||
|
@depends_on = [{ "supcharg_over_soft_max?" => true }] |
||||||
|
@title_text = { |
||||||
|
"translation" => "soft_validations.supcharg.title_text", |
||||||
|
} |
||||||
|
@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 |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Lettings::Questions::PschargeValueCheck < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "pscharge_value_check" |
||||||
|
@check_answer_label = "Personal service charge confirmation" |
||||||
|
@header = "Are you sure?" |
||||||
|
@type = "interruption_screen" |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@answer_options = ANSWER_OPTIONS |
||||||
|
@hidden_in_check_answers = { "depends_on" => [{ "pscharge_value_check" => 0 }, { "pscharge_value_check" => 1 }] } |
||||||
|
end |
||||||
|
|
||||||
|
ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" } }.freeze |
||||||
|
end |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Lettings::Questions::SchargeValueCheck < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "scharge_value_check" |
||||||
|
@check_answer_label = "Service charge confirmation" |
||||||
|
@header = "Are you sure?" |
||||||
|
@type = "interruption_screen" |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@answer_options = ANSWER_OPTIONS |
||||||
|
@hidden_in_check_answers = { "depends_on" => [{ "scharge_value_check" => 0 }, { "scharge_value_check" => 1 }] } |
||||||
|
end |
||||||
|
|
||||||
|
ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" } }.freeze |
||||||
|
end |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Lettings::Questions::SupchargValueCheck < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "supcharg_value_check" |
||||||
|
@check_answer_label = "Support charge confirmation" |
||||||
|
@header = "Are you sure?" |
||||||
|
@type = "interruption_screen" |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@answer_options = ANSWER_OPTIONS |
||||||
|
@hidden_in_check_answers = { "depends_on" => [{ "supcharg_value_check" => 0 }, { "supcharg_value_check" => 1 }] } |
||||||
|
end |
||||||
|
|
||||||
|
ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" } }.freeze |
||||||
|
end |
||||||
Loading…
Reference in new issue