Browse Source

Remove or include copy key where appropriate

pull/2694/head
Manny Dinssa 8 months ago
parent
commit
06f66bf777
  1. 2
      app/models/form/sales/pages/address_matcher.rb
  2. 1
      app/models/form/sales/questions/no_address_found.rb
  3. 1
      app/models/form/sales/questions/property_local_authority.rb
  4. 1
      app/models/form/sales/questions/uprn.rb
  5. 1
      app/models/form/sales/questions/uprn_confirmation.rb
  6. 1
      app/models/form/sales/questions/uprn_known.rb
  7. 1
      app/models/form/sales/questions/uprn_selection.rb
  8. 2
      config/locales/forms/2023/sales/property.en.yml
  9. 2
      config/locales/forms/2024/sales/property.en.yml

2
app/models/form/sales/pages/address_matcher.rb

@ -2,7 +2,7 @@ class Form::Sales::Pages::AddressMatcher < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "address_matcher"
@header = "sales.property.address_matcher"
@copy_key = "sales.property.address_matcher"
@depends_on = [
{ "uprn_known" => nil },
{ "uprn_known" => 0 },

1
app/models/form/sales/questions/no_address_found.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::NoAddressFound < ::Form::Question
def initialize(id, hsh, page)
super
@id = "address_search_value_check"
@copy_key = "sales.property.address_search_value_check"
@type = "interruption_screen"
@hidden_in_check_answers = true
end

1
app/models/form/sales/questions/property_local_authority.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::PropertyLocalAuthority < ::Form::Question
def initialize(id, hsh, page)
super
@id = "la"
@copy_key = "sales.property.la"
@type = "select"
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
@disable_clearing_if_not_routed_or_dynamic_answer_options = true

1
app/models/form/sales/questions/uprn.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::Uprn < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn"
@copy_key = "sales.property.uprn"
@type = "text"
@width = 10
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

1
app/models/form/sales/questions/uprn_confirmation.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::UprnConfirmation < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn_confirmed"
@header = "Is this the property address?"
@type = "radio"
end

1
app/models/form/sales/questions/uprn_known.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::UprnKnown < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn_known"
@copy_key = "sales.property.uprn_known"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@conditional_for = { "uprn" => [1] }

1
app/models/form/sales/questions/uprn_selection.rb

@ -2,7 +2,6 @@ class Form::Sales::Questions::UprnSelection < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn_selection"
@header = "Select the correct address"
@type = "radio"
@disable_clearing_if_not_routed_or_dynamic_answer_options = true
end

2
config/locales/forms/2023/sales/property.en.yml

@ -19,7 +19,7 @@ en:
page_header: "We found an address that might be this property"
check_answer_label: "Is this the right address?"
hint_text: ""
question_text: "Is this the property address?"
question_text: "Select the correct address"
address:
page_header: "Q15 - What is the property's address?"

2
config/locales/forms/2024/sales/property.en.yml

@ -19,7 +19,7 @@ en:
page_header: "We found an address that might be this property"
check_answer_label: "Is this the right address?"
hint_text: ""
question_text: "Is this the property address?"
question_text: "Select the correct address"
address_matcher:
page_header: "Find an address"

Loading…
Cancel
Save