Browse Source

feat: hide in cya

pull/1225/head
natdeanlewissoftwire 2 years ago
parent
commit
c845ddf145
  1. 13
      app/models/form/sales/questions/about_price_shared_ownership_value_check.rb

13
app/models/form/sales/questions/about_price_shared_ownership_value_check.rb

@ -3,22 +3,13 @@ class Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck < ::Form::Ques
super super
@id = "value_value_check" @id = "value_value_check"
@check_answer_label = "Deposit confirmation" @check_answer_label = "Deposit confirmation"
@header = "Are you sure? You said purchase price was #{log.value}, which seems #{value_is_high?(log.value) ? 'high' : 'low'}" @header = "Are you sure? You said purchase price was PRICE, which seems high"
@type = "interruption_screen" @type = "interruption_screen"
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },
"1" => { "value" => "No" }, "1" => { "value" => "No" },
} }
@hidden_in_check_answers = { @hidden_in_check_answers = true
"depends_on" => [
{
"value_value_check" => 0,
},
{
"value_value_check" => 1,
},
],
}
end end
def value_is_high?(value) def value_is_high?(value)

Loading…
Cancel
Save