Browse Source

Keep default page header for uprn confirmation and selection

pull/2694/head
Manny Dinssa 8 months ago
parent
commit
a035a221e7
  1. 2
      app/models/form/sales/pages/uprn_confirmation.rb
  2. 2
      app/models/form/sales/pages/uprn_selection.rb
  3. 2
      config/locales/forms/2023/sales/property.en.yml
  4. 4
      config/locales/forms/2024/sales/property.en.yml

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

@ -1,7 +1,7 @@
class Form::Sales::Pages::UprnConfirmation < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "uprn_confirmation"
@header = "We found an address that might be this property"
@copy_key = "sales.property.uprn_confirmed"
end

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

@ -2,7 +2,7 @@ class Form::Sales::Pages::UprnSelection < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "uprn_selection"
@copy_key = "sales.property.uprn_selection"
@header = "We found some addresses that might be this property"
@depends_on = [
{ "uprn_known" => nil, "address_options_present?" => true },
{ "uprn_known" => 0, "address_options_present?" => true },

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

@ -16,7 +16,7 @@ en:
question_text: "Do you know the property's UPRN?"
uprn_confirmed:
page_header: "We found an address that might be this property"
page_header: ""
check_answer_label: "Is this the right address?"
hint_text: ""
question_text: "Is this the property address?"

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

@ -16,7 +16,7 @@ en:
question_text: "Do you know the property's UPRN?"
uprn_confirmed:
page_header: "We found an address that might be this property"
page_header: ""
check_answer_label: "Is this the right address?"
hint_text: ""
question_text: "Is this the property address?"
@ -39,7 +39,7 @@ en:
question_text: "No address found"
uprn_selection:
page_header: "We found some addresses that might be this property"
page_header: ""
check_answer_label: "Select the correct address"
hint_text: ""
question_text: "Select the correct address"

Loading…
Cancel
Save