Browse Source

Refactor chcharge

pull/2732/head
Manny Dinssa 8 months ago
parent
commit
e2731d427a
  1. 2
      app/models/form/lettings/questions/chcharge_4_weekly.rb
  2. 2
      app/models/form/lettings/questions/chcharge_bi_weekly.rb
  3. 2
      app/models/form/lettings/questions/chcharge_monthly.rb
  4. 2
      app/models/form/lettings/questions/chcharge_weekly.rb
  5. 33
      config/locales/forms/2023/lettings/income_and_benefits.en.yml
  6. 33
      config/locales/forms/2024/lettings/income_and_benefits.en.yml

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Chcharge4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.four_weekly" @copy_key = "lettings.income_and_benefits.care_home.chcharge_4_weekly"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::ChchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.bi_weekly" @copy_key = "lettings.income_and_benefits.care_home.chcharge_bi_weekly"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::ChchargeMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.monthly" @copy_key = "lettings.income_and_benefits.care_home.chcharge_monthly"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::ChchargeWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.weekly" @copy_key = "lettings.income_and_benefits.care_home.chcharge_weekly"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0

33
config/locales/forms/2023/lettings/income_and_benefits.en.yml

@ -50,23 +50,22 @@ en:
check_answer_label: "Care home accommodation" check_answer_label: "Care home accommodation"
hint_text: "" hint_text: ""
question_text: "Is this accommodation a care home?" question_text: "Is this accommodation a care home?"
chcharge: chcharge_weekly:
weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every week?"
question_text: "How much does the household pay every week?" chcharge_bi_weekly:
bi_weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every 2 weeks?"
question_text: "How much does the household pay every 2 weeks?" chcharge_4_weekly:
four_weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every 4 weeks?"
question_text: "How much does the household pay every 4 weeks?" chcharge_monthly:
monthly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every month?"
question_text: "How much does the household pay every month?"
rent_weekly: rent_weekly:
page_header: "Household rent and charges" page_header: "Household rent and charges"

33
config/locales/forms/2024/lettings/income_and_benefits.en.yml

@ -50,23 +50,22 @@ en:
check_answer_label: "Care home accommodation" check_answer_label: "Care home accommodation"
hint_text: "" hint_text: ""
question_text: "Is this accommodation a care home?" question_text: "Is this accommodation a care home?"
chcharge: chcharge_weekly:
weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every week?"
question_text: "How much does the household pay every week?" chcharge_bi_weekly:
bi_weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every 2 weeks?"
question_text: "How much does the household pay every 2 weeks?" chcharge_4_weekly:
four_weekly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every 4 weeks?"
question_text: "How much does the household pay every 4 weeks?" chcharge_monthly:
monthly: check_answer_label: "Care home charges"
check_answer_label: "Care home charges" hint_text: ""
hint_text: "" question_text: "How much does the household pay every month?"
question_text: "How much does the household pay every month?"
rent_weekly: rent_weekly:
page_header: "Household rent and charges" page_header: "Household rent and charges"

Loading…
Cancel
Save