Browse Source

feat: rename files

pull/1285/head
natdeanlewissoftwire 3 years ago
parent
commit
5493cff8a8
  1. 42
      app/models/form/sales/pages/about_price_shared_ownership_value_check.rb
  2. 23
      app/models/form/sales/questions/about_price_shared_ownership_value_check.rb

42
app/models/form/sales/pages/about_price_shared_ownership_value_check.rb

@ -1,42 +0,0 @@
class Form::Sales::Pages::AboutPriceSharedOwnershipValueCheck < ::Form::Page
def initialize(id, hsh, subsection)
super
@depends_on = [
{
"purchase_price_out_of_soft_range?" => true,
},
]
@title_text = {
"translation" => "soft_validations.purchase_price.title_text",
"arguments" => [
{
"key" => "value",
"label" => true,
"i18n_template" => "value",
},
],
}
@informative_text = {
"translation" => "soft_validations.purchase_price.hint_text",
"arguments" => [
{
"key" => "purchase_price_soft_min_or_soft_max",
"label" => false,
"i18n_template" => "soft_min_or_soft_max",
"currency" => true,
},
{
"key" => "purchase_price_min_or_max_text",
"label" => false,
"i18n_template" => "min_or_max",
},
],
}
end
def questions
@questions ||= [
Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck.new(nil, nil, self),
]
end
end

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

@ -1,23 +0,0 @@
class Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck < ::Form::Question
def initialize(id, hsh, page)
super
@id = "value_value_check"
@check_answer_label = "Purchase price confirmation"
@header = "Are you sure?"
@type = "interruption_screen"
@answer_options = {
"0" => { "value" => "Yes" },
"1" => { "value" => "No" },
}
@hidden_in_check_answers = {
"depends_on" => [
{
"value_value_check" => 0,
},
{
"value_value_check" => 1,
},
],
}
end
end
Loading…
Cancel
Save