Browse Source

fix: get real validation messages for rent range validations (#1413)

CLDC-1787-bulk-upload-column-ordering
SamSeed-Softwire 2 years ago committed by GitHub
parent
commit
cd14c6a24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/models/form/lettings/pages/max_rent_value_check.rb
  2. 4
      app/models/form/lettings/pages/min_rent_value_check.rb

4
app/models/form/lettings/pages/max_rent_value_check.rb

@ -4,11 +4,11 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page
@id = "max_rent_value_check" @id = "max_rent_value_check"
@depends_on = [{ "rent_in_soft_max_range?" => true }] @depends_on = [{ "rent_in_soft_max_range?" => true }]
@title_text = { @title_text = {
"translation" => "soft_validations.rent.max.title_text", "translation" => "soft_validations.rent.outside_range_title",
"arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }], "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }],
} }
@informative_text = { @informative_text = {
"translation" => "soft_validations.rent.max.hint_text", "translation" => "soft_validations.rent.max_hint_text",
"arguments" => [ "arguments" => [
{ {
"key" => "soft_max_for_period", "key" => "soft_max_for_period",

4
app/models/form/lettings/pages/min_rent_value_check.rb

@ -4,11 +4,11 @@ class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page
@id = "min_rent_value_check" @id = "min_rent_value_check"
@depends_on = [{ "rent_in_soft_min_range?" => true }] @depends_on = [{ "rent_in_soft_min_range?" => true }]
@title_text = { @title_text = {
"translation" => "soft_validations.rent.min.title_text", "translation" => "soft_validations.rent.outside_range_title",
"arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }], "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }],
} }
@informative_text = { @informative_text = {
"translation" => "soft_validations.rent.min.hint_text", "translation" => "soft_validations.rent.min_hint_text",
"arguments" => [ "arguments" => [
{ {
"key" => "soft_min_for_period", "key" => "soft_min_for_period",

Loading…
Cancel
Save