Browse Source

Update wrong copy, remove duplicate keys

pull/2730/head
Kat 8 months ago
parent
commit
f2acdc0bd0
  1. 2
      app/models/form/lettings/questions/reason.rb
  2. 2
      app/models/form/lettings/questions/reason_renewal.rb
  3. 14
      config/locales/forms/2023/lettings/household_situation.en.yml
  4. 14
      config/locales/forms/2024/lettings/household_situation.en.yml

2
app/models/form/lettings/questions/reason.rb

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Reason < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "reason" @id = "reason"
@copy_key = "lettings.household_situation.reason.renewal.#{page.id}.reason" @copy_key = "lettings.household_situation.reason.#{page.id}.reason"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@conditional_for = { @conditional_for = {

2
app/models/form/lettings/questions/reason_renewal.rb

@ -3,7 +3,7 @@ class Form::Lettings::Questions::ReasonRenewal < ::Form::Question
super super
@id = "reason" @id = "reason"
@type = "radio" @type = "radio"
@copy_key = "lettings.household_situation.reason.renewal.#{page.id}.reason" @copy_key = "lettings.household_situation.reason.#{page.id}.reason"
@check_answers_card_number = 0 @check_answers_card_number = 0
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
@conditional_for = { @conditional_for = {

14
config/locales/forms/2023/lettings/household_situation.en.yml

@ -15,12 +15,6 @@ en:
hint_text: "" hint_text: ""
question_text: "How long has the household been on the local authority waiting list for the new letting?" question_text: "How long has the household been on the local authority waiting list for the new letting?"
waityear:
page_header: ""
check_answer_label: "Length of time on local authority waiting list"
hint_text: ""
question_text: "How long has the household been on the local authority waiting list for the new letting?"
reason: reason:
reason_for_leaving_last_settled_home_renewal: reason_for_leaving_last_settled_home_renewal:
page_header: "" page_header: ""
@ -75,7 +69,7 @@ en:
previous_local_authority: previous_local_authority:
page_header: "" page_header: ""
previous_la_known: previous_la_known:
check_answer_label: "Do you know the local authority of the household’s last settled accommodation?" check_answer_label: ""
hint_text: "This is also known as the household’s ‘last settled home’." hint_text: "This is also known as the household’s ‘last settled home’."
question_text: "Do you know the local authority of the household’s last settled accommodation?" question_text: "Do you know the local authority of the household’s last settled accommodation?"
prevloc: prevloc:
@ -101,12 +95,6 @@ en:
hint_text: "Select all that apply." hint_text: "Select all that apply."
question_text: "How was this letting allocated?" question_text: "How was this letting allocated?"
letting_allocation:
page_header: ""
check_answer_label: "Allocation system"
hint_text: "Select all that apply."
question_text: "How was this letting allocated?"
referral: referral:
supported_housing: supported_housing:
prp: prp:

14
config/locales/forms/2024/lettings/household_situation.en.yml

@ -15,12 +15,6 @@ en:
hint_text: "" hint_text: ""
question_text: "How long has the household been on the local authority waiting list for the area of the new letting?" question_text: "How long has the household been on the local authority waiting list for the area of the new letting?"
waityear:
page_header: ""
check_answer_label: "Length of time on local authority waiting list"
hint_text: ""
question_text: "How long has the household been on the local authority waiting list for the area of the new letting?"
reason: reason:
reason_for_leaving_last_settled_home_renewal: reason_for_leaving_last_settled_home_renewal:
page_header: "" page_header: ""
@ -75,7 +69,7 @@ en:
previous_local_authority: previous_local_authority:
page_header: "" page_header: ""
previous_la_known: previous_la_known:
check_answer_label: "Do you know the local authority of the household’s last settled accommodation?" check_answer_label: ""
hint_text: "This is the tenant’s last long-standing home. It is where the tenant was living before any period in temporary accommodation, sleeping rough or otherwise homeless." hint_text: "This is the tenant’s last long-standing home. It is where the tenant was living before any period in temporary accommodation, sleeping rough or otherwise homeless."
question_text: "Do you know the local authority of the household’s last settled accommodation?" question_text: "Do you know the local authority of the household’s last settled accommodation?"
prevloc: prevloc:
@ -101,12 +95,6 @@ en:
hint_text: "Select all that apply." hint_text: "Select all that apply."
question_text: "How was this letting allocated?" question_text: "How was this letting allocated?"
letting_allocation:
page_header: ""
check_answer_label: "Allocation system"
hint_text: "Select all that apply."
question_text: "How was this letting allocated?"
referral: referral:
supported_housing: supported_housing:
prp: prp:

Loading…
Cancel
Save