natdeanlewissoftwire
2 years ago
7 changed files with 62 additions and 93 deletions
@ -1,38 +0,0 @@
|
||||
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 |
@ -1,38 +0,0 @@
|
||||
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 |
@ -0,0 +1,42 @@
|
||||
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_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", |
||||
}, |
||||
{ |
||||
"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 |
Loading…
Reference in new issue