5 changed files with 68 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
class Form::Lettings::Pages::ReferralValueCheck < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "referral_value_check" |
||||||
|
@depends_on = [{ "la_referral_for_general_needs?" => true }] |
||||||
|
@title_text = { |
||||||
|
"translation" => "soft_validations.referral.title_text", |
||||||
|
} |
||||||
|
@informative_text = "" |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::ReferralValueCheck.new(nil, nil, self)] |
||||||
|
end |
||||||
|
|
||||||
|
def interruption_screen_question_ids |
||||||
|
%w[needstype referral] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Lettings::Questions::ReferralValueCheck < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "referral_value_check" |
||||||
|
@check_answer_label = "Referral confirmation" |
||||||
|
@header = "Are you sure?" |
||||||
|
@type = "interruption_screen" |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@answer_options = ANSWER_OPTIONS |
||||||
|
@hidden_in_check_answers = { "depends_on" => [{ "referral_value_check" => 0 }, { "referral_value_check" => 1 }] } |
||||||
|
end |
||||||
|
|
||||||
|
ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" } }.freeze |
||||||
|
end |
||||||
Loading…
Reference in new issue