Browse Source

Keep existing details for buyer income 1 and 2 check, common to other subsections

pull/2694/head
Manny Dinssa 8 months ago
parent
commit
27c4ba322c
  1. 3
      app/models/form/sales/questions/buyer1_income_value_check.rb
  2. 3
      app/models/form/sales/questions/buyer2_income_value_check.rb
  3. 12
      config/locales/forms/2023/sales/property.en.yml
  4. 12
      config/locales/forms/2024/sales/property.en.yml

3
app/models/form/sales/questions/buyer1_income_value_check.rb

@ -2,7 +2,8 @@ class Form::Sales::Questions::Buyer1IncomeValueCheck < ::Form::Question
def initialize(id, hsh, page, check_answers_card_number:) def initialize(id, hsh, page, check_answers_card_number:)
super(id, hsh, page) super(id, hsh, page)
@id = "income1_value_check" @id = "income1_value_check"
@copy_key = "sales.property.income1_value_check" @check_answer_label = "Buyer 1 income confirmation"
@header = "Are you sure this is correct?"
@type = "interruption_screen" @type = "interruption_screen"
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },

3
app/models/form/sales/questions/buyer2_income_value_check.rb

@ -2,7 +2,8 @@ class Form::Sales::Questions::Buyer2IncomeValueCheck < ::Form::Question
def initialize(id, hsh, page, check_answers_card_number:) def initialize(id, hsh, page, check_answers_card_number:)
super(id, hsh, page) super(id, hsh, page)
@id = "income2_value_check" @id = "income2_value_check"
@copy_key = "sales.property.income2_value_check" @check_answer_label = "Buyer 2 income confirmation"
@header = "Are you sure this is correct?"
@type = "interruption_screen" @type = "interruption_screen"
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },

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

@ -50,18 +50,6 @@ en:
hint_text: "" hint_text: ""
question_text: "What is the property’s local authority?" question_text: "What is the property’s local authority?"
income1_value_check:
page_header: ""
check_answer_label: "Buyer 1 income confirmation"
hint_text: ""
question_text: "Are you sure this is correct?"
income2_value_check":
page_header: ""
check_answer_label: "Buyer 2 income confirmation"
hint_text: ""
question_text: "Are you sure this is correct?"
combined_income_value_check: combined_income_value_check:
page_header: "" page_header: ""
check_answer_label: "Combined income confirmation" check_answer_label: "Combined income confirmation"

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

@ -73,18 +73,6 @@ en:
hint_text: "" hint_text: ""
question_text: "What is the property’s local authority?" question_text: "What is the property’s local authority?"
income1_value_check:
page_header: ""
check_answer_label: "Buyer 1 income confirmation"
hint_text: ""
question_text: "Are you sure this is correct?"
income2_value_check":
page_header: ""
check_answer_label: "Buyer 2 income confirmation"
hint_text: ""
question_text: "Are you sure this is correct?"
combined_income_value_check: combined_income_value_check:
page_header: "" page_header: ""
check_answer_label: "Combined income confirmation" check_answer_label: "Combined income confirmation"

Loading…
Cancel
Save