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.
25 lines
571 B
25 lines
571 B
2 years ago
|
class Form::Sales::Questions::Person2Known < ::Form::Question
|
||
|
def initialize(id, hsh, page)
|
||
|
super
|
||
|
@id = "details_known_2"
|
||
|
@check_answer_label = "Details known for person 2?"
|
||
|
@header = "Do you know the details for person 2?"
|
||
|
@type = "radio"
|
||
|
@answer_options = ANSWER_OPTIONS
|
||
|
@page = page
|
||
|
@hint_text = ""
|
||
|
@hidden_in_check_answers = {
|
||
|
"depends_on" => [
|
||
|
{
|
||
|
"details_known_2" => 1,
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
end
|
||
|
|
||
|
ANSWER_OPTIONS = {
|
||
|
"1" => { "value" => "Yes" },
|
||
|
"2" => { "value" => "No" },
|
||
|
}.freeze
|
||
|
end
|