natdeanlewissoftwire
2 years ago
10 changed files with 115 additions and 34 deletions
@ -0,0 +1,38 @@
|
||||
class Form::Sales::Pages::AboutPriceSharedOwnershipMaxValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "about_price_shared_ownership_max_value_check" |
||||
@depends_on = [ |
||||
{ |
||||
"purchase_price_above_soft_max?" => true, |
||||
}, |
||||
] |
||||
@informative_text = {} |
||||
@title_text = { |
||||
"translation" => "soft_validations.purchase_price.max.title_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "value", |
||||
"label" => true, |
||||
"i18n_template" => "value", |
||||
}, |
||||
], |
||||
} |
||||
@informative_text = { |
||||
"translation" => "soft_validations.purchase_price.max.hint_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "purchase_price_soft_max", |
||||
"label" => false, |
||||
"i18n_template" => "soft_max", |
||||
}, |
||||
], |
||||
} |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
@ -0,0 +1,38 @@
|
||||
class Form::Sales::Pages::AboutPriceSharedOwnershipMinValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "about_price_shared_ownership_min_value_check" |
||||
@depends_on = [ |
||||
{ |
||||
"purchase_price_below_soft_min?" => true, |
||||
}, |
||||
] |
||||
@informative_text = {} |
||||
@title_text = { |
||||
"translation" => "soft_validations.purchase_price.min.title_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "value", |
||||
"label" => true, |
||||
"i18n_template" => "value", |
||||
}, |
||||
], |
||||
} |
||||
@informative_text = { |
||||
"translation" => "soft_validations.purchase_price.min.hint_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "purchase_price_soft_min", |
||||
"label" => false, |
||||
"i18n_template" => "soft_min", |
||||
}, |
||||
], |
||||
} |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
@ -1,18 +0,0 @@
|
||||
class Form::Sales::Pages::AboutPriceSharedOwnershipValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "about_price_shared_ownership_value_check" |
||||
@depends_on = [ |
||||
{ |
||||
"purchase_price_out_of_expected_range?" => true, |
||||
}, |
||||
] |
||||
@informative_text = {} |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::AboutPriceSharedOwnershipValueCheck.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
Loading…
Reference in new issue