4 changed files with 48 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||||
|
class Form::Sales::Pages::GrantValueCheck < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "grant_value_check" |
||||||
|
@depends_on = [ |
||||||
|
{ |
||||||
|
"grant_outside_common_range?" => true, |
||||||
|
}, |
||||||
|
] |
||||||
|
@informative_text = {} |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [ |
||||||
|
Form::Sales::Questions::GrantValueCheck.new(nil, nil, self), |
||||||
|
] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
class Form::Sales::Questions::GrantValueCheck < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "grant_value_check" |
||||||
|
@check_answer_label = "Grant value confirmation" |
||||||
|
@header = "Are you sure? Grants are usually £9,000 - £16,000" |
||||||
|
@type = "interruption_screen" |
||||||
|
@answer_options = { |
||||||
|
"0" => { "value" => "Yes" }, |
||||||
|
"1" => { "value" => "No" }, |
||||||
|
} |
||||||
|
@hidden_in_check_answers = { |
||||||
|
"depends_on" => [ |
||||||
|
{ |
||||||
|
"grant_value_check" => 0, |
||||||
|
}, |
||||||
|
{ |
||||||
|
"grant_value_check" => 1, |
||||||
|
}, |
||||||
|
], |
||||||
|
} |
||||||
|
end |
||||||
|
end |
||||||
Loading…
Reference in new issue