Browse Source

Extract income and benefits translations

pull/2732/head
Manny Dinssa 8 months ago
parent
commit
4f42fced7c
  1. 1
      app/models/form/lettings/pages/care_home_weekly.rb
  2. 2
      app/models/form/lettings/pages/income_amount.rb
  3. 1
      app/models/form/lettings/pages/income_known.rb
  4. 2
      app/models/form/lettings/pages/rent_4_weekly.rb
  5. 2
      app/models/form/lettings/pages/rent_bi_weekly.rb
  6. 2
      app/models/form/lettings/pages/rent_monthly.rb
  7. 2
      app/models/form/lettings/pages/rent_weekly.rb
  8. 3
      app/models/form/lettings/questions/benefits.rb
  9. 4
      app/models/form/lettings/questions/brent_4_weekly.rb
  10. 4
      app/models/form/lettings/questions/brent_bi_weekly.rb
  11. 4
      app/models/form/lettings/questions/brent_monthly.rb
  12. 4
      app/models/form/lettings/questions/brent_weekly.rb
  13. 4
      app/models/form/lettings/questions/chcharge_4_weekly.rb
  14. 4
      app/models/form/lettings/questions/chcharge_bi_weekly.rb
  15. 4
      app/models/form/lettings/questions/chcharge_monthly.rb
  16. 4
      app/models/form/lettings/questions/chcharge_weekly.rb
  17. 3
      app/models/form/lettings/questions/earnings.rb
  18. 3
      app/models/form/lettings/questions/hbrentshortfall.rb
  19. 3
      app/models/form/lettings/questions/household_charge.rb
  20. 4
      app/models/form/lettings/questions/incfreq.rb
  21. 4
      app/models/form/lettings/questions/is_carehome.rb
  22. 3
      app/models/form/lettings/questions/net_income_known.rb
  23. 3
      app/models/form/lettings/questions/period.rb
  24. 4
      app/models/form/lettings/questions/pscharge_4_weekly.rb
  25. 4
      app/models/form/lettings/questions/pscharge_bi_weekly.rb
  26. 4
      app/models/form/lettings/questions/pscharge_monthly.rb
  27. 4
      app/models/form/lettings/questions/pscharge_weekly.rb
  28. 4
      app/models/form/lettings/questions/scharge_4_weekly.rb
  29. 4
      app/models/form/lettings/questions/scharge_bi_weekly.rb
  30. 4
      app/models/form/lettings/questions/scharge_monthly.rb
  31. 4
      app/models/form/lettings/questions/scharge_weekly.rb
  32. 4
      app/models/form/lettings/questions/supcharg_4_weekly.rb
  33. 4
      app/models/form/lettings/questions/supcharg_bi_weekly.rb
  34. 4
      app/models/form/lettings/questions/supcharg_monthly.rb
  35. 4
      app/models/form/lettings/questions/supcharg_weekly.rb
  36. 4
      app/models/form/lettings/questions/tcharge_4_weekly.rb
  37. 4
      app/models/form/lettings/questions/tcharge_bi_weekly.rb
  38. 4
      app/models/form/lettings/questions/tcharge_monthly.rb
  39. 4
      app/models/form/lettings/questions/tcharge_weekly.rb
  40. 3
      app/models/form/lettings/questions/tshortfall.rb
  41. 4
      app/models/form/lettings/questions/tshortfall_known.rb
  42. 184
      config/locales/forms/2023/lettings/income_and_benefits.en.yml
  43. 184
      config/locales/forms/2024/lettings/income_and_benefits.en.yml

1
app/models/form/lettings/pages/care_home_weekly.rb

@ -2,6 +2,7 @@ class Form::Lettings::Pages::CareHomeWeekly < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "care_home_weekly"
@copy_key = "lettings.income_and_benefits.care_home"
@depends_on = [
{ "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => 0 },
{ "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => nil },

2
app/models/form/lettings/pages/income_amount.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::IncomeAmount < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "income_amount"
@header = "Total household income"
@copy_key = "lettings.income_and_benefits.income_amount"
@depends_on = [{ "net_income_known" => 0 }]
end

1
app/models/form/lettings/pages/income_known.rb

@ -2,7 +2,6 @@ class Form::Lettings::Pages::IncomeKnown < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "income_known"
@header = "Household’s combined income after tax"
end
def questions

2
app/models/form/lettings/pages/rent_4_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::Rent4Weekly < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "rent_4_weekly"
@header = "Household rent and charges"
@copy_key = "lettings.income_and_benefits.rent_4_weekly"
@depends_on = [
{ "household_charge" => 0, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false },
{ "household_charge" => nil, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_bi_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentBiWeekly < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "rent_bi_weekly"
@header = "Household rent and charges"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly"
@depends_on = [
{ "household_charge" => nil, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false },
{ "household_charge" => 0, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_monthly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentMonthly < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "rent_monthly"
@header = "Household rent and charges"
@copy_key = "lettings.income_and_benefits.rent_monthly"
@depends_on = [
{ "household_charge" => nil, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false },
{ "household_charge" => 0, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentWeekly < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "rent_weekly"
@header = "Household rent and charges"
@copy_key = "lettings.income_and_benefits.rent_weekly"
@depends_on = [
{ "rent_and_charges_paid_weekly?" => true, "household_charge" => 0, "is_carehome?" => false },
{ "rent_and_charges_paid_weekly?" => true, "household_charge" => nil, "is_carehome?" => false },

3
app/models/form/lettings/questions/benefits.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Benefits < ::Form::Question
def initialize(id, hsh, page)
super
@id = "benefits"
@check_answer_label = "Household income from Universal Credit, state pension or benefits"
@header = "How much of the household’s income is from Universal Credit, state pensions or benefits?"
@type = "radio"
@check_answers_card_number = 0
@hint_text = "This excludes child and housing benefit, council tax support and tax credits."
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

4
app/models/form/lettings/questions/brent_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Brent4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@check_answer_label = "Basic rent"
@header = "What is the basic rent?"
@copy_key = "lettings.income_and_benefits.rent_4_weekly.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/brent_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@check_answer_label = "Basic rent"
@header = "What is the basic rent?"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/brent_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@check_answer_label = "Basic rent"
@header = "What is the basic rent?"
@copy_key = "lettings.income_and_benefits.rent_monthly.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/brent_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@check_answer_label = "Basic rent"
@header = "What is the basic rent?"
@copy_key = "lettings.income_and_benefits.rent_weekly.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

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

@ -2,12 +2,10 @@ class Form::Lettings::Questions::Chcharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "chcharge"
@check_answer_label = "Care home charges"
@header = "How much does the household pay every 4 weeks?"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.four_weekly"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@hint_text = ""
@step = 0.01
@prefix = "£"
@suffix = " every 4 weeks"

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

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "chcharge"
@check_answer_label = "Care home charges"
@header = "How much does the household pay every 2 weeks?"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.bi_weekly"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@hint_text = ""
@step = 0.01
@prefix = "£"
@suffix = " every 2 weeks"

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

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "chcharge"
@check_answer_label = "Care home charges"
@header = "How much does the household pay every month?"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.monthly"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@hint_text = ""
@step = 0.01
@prefix = "£"
@suffix = " every month"

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

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "chcharge"
@check_answer_label = "Care home charges"
@header = "How much does the household pay every week?"
@copy_key = "lettings.income_and_benefits.care_home.chcharge.weekly"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@hint_text = ""
@step = 0.01
@prefix = "£"
@suffix = " every week"

3
app/models/form/lettings/questions/earnings.rb

@ -2,14 +2,11 @@ class Form::Lettings::Questions::Earnings < ::Form::Question
def initialize(id, hsh, page)
super
@id = "earnings"
@check_answer_label = "Total household income"
@header = "How much income does the household have in total?"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@top_guidance_partial = "what_counts_as_income"
@hint_text = ""
@step = 0.01
@prefix = "£"
@suffix = [

3
app/models/form/lettings/questions/hbrentshortfall.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Hbrentshortfall < ::Form::Question
def initialize(id, hsh, page)
super
@id = "hbrentshortfall"
@check_answer_label = "Any outstanding amount for basic rent and charges"
@header = "After the household has received any housing-related benefits, will they still need to pay for rent and charges?"
@type = "radio"
@check_answers_card_number = 0
@hint_text = "Also known as the ‘outstanding amount’."
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

3
app/models/form/lettings/questions/household_charge.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::HouseholdCharge < ::Form::Question
def initialize(id, hsh, page)
super
@id = "household_charge"
@check_answer_label = "Does the household pay rent or charges?"
@header = "Does the household pay rent or other charges for the accommodation?"
@type = "radio"
@check_answers_card_number = 0
@hint_text = "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

4
app/models/form/lettings/questions/incfreq.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::Incfreq < ::Form::Question
def initialize(id, hsh, page)
super
@id = "incfreq"
@check_answer_label = "How often does the household receive this amount?"
@header = "How often does the household receive this amount?"
@copy_key = "lettings.income_and_benefits.income_amount.incfreq"
@type = "radio"
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@hidden_in_check_answers = true
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

4
app/models/form/lettings/questions/is_carehome.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::IsCarehome < ::Form::Question
def initialize(id, hsh, page)
super
@id = "is_carehome"
@check_answer_label = "Care home accommodation"
@header = "Is this accommodation a care home?"
@copy_key = "lettings.income_and_benefits.care_home.is_carehome"
@type = "radio"
@check_answers_card_number = 0
@hint_text = ""
@conditional_for = { "chcharge" => [1] }
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

3
app/models/form/lettings/questions/net_income_known.rb

@ -2,12 +2,9 @@ class Form::Lettings::Questions::NetIncomeKnown < ::Form::Question
def initialize(id, hsh, page)
super
@id = "net_income_known"
@check_answer_label = "Do you know the household’s combined total income after tax?"
@header = "Do you know the household’s combined income after tax?"
@type = "radio"
@check_answers_card_number = 0
@top_guidance_partial = "what_counts_as_income"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

3
app/models/form/lettings/questions/period.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Period < ::Form::Question
def initialize(id, hsh, page)
super
@id = "period"
@check_answer_label = "Frequency of household rent and charges"
@header = "How often does the household pay rent and other charges?"
@type = "radio"
@check_answers_card_number = 0
@hint_text = "Select how often the household is charged. This may be different to how often they pay."
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end

4
app/models/form/lettings/questions/pscharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Pscharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@check_answer_label = "Personal service charge"
@header = "What is the personal service charge?"
@copy_key = "lettings.income_and_benefits.rent_4_weekly.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@check_answer_label = "Personal service charge"
@header = "What is the personal service charge?"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@check_answer_label = "Personal service charge"
@header = "What is the personal service charge?"
@copy_key = "lettings.income_and_benefits.rent_monthly.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@check_answer_label = "Personal service charge"
@header = "What is the personal service charge?"
@copy_key = "lettings.income_and_benefits.rent_weekly.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Scharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@check_answer_label = "Service charge"
@header = "What is the service charge?"
@copy_key = "lettings.income_and_benefits.rent_4_weekly.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@check_answer_label = "Service charge"
@header = "What is the service charge?"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@check_answer_label = "Service charge"
@header = "What is the service charge?"
@copy_key = "lettings.income_and_benefits.rent_monthly.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@check_answer_label = "Service charge"
@header = "What is the service charge?"
@copy_key = "lettings.income_and_benefits.rent_weekly.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Supcharg4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@check_answer_label = "Support charge"
@header = "What is the support charge?"
@copy_key = "lettings.income_and_benefits.rent_4_weekly.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@check_answer_label = "Support charge"
@header = "What is the support charge?"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@check_answer_label = "Support charge"
@header = "What is the support charge?"
@copy_key = "lettings.income_and_benefits.rent_monthly.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@check_answer_label = "Support charge"
@header = "What is the support charge?"
@copy_key = "lettings.income_and_benefits.rent_weekly.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge"

4
app/models/form/lettings/questions/tcharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Tcharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@check_answer_label = "Household rent and charges"
@header = "Total charge"
@copy_key = "lettings.income_and_benefits.rent_4_weekly.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01
@readonly = true
@prefix = "£"

4
app/models/form/lettings/questions/tcharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@check_answer_label = "Household rent and charges"
@header = "Total charge"
@copy_key = "lettings.income_and_benefits.rent_bi_weekly.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01
@readonly = true
@prefix = "£"

4
app/models/form/lettings/questions/tcharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@check_answer_label = "Household rent and charges"
@header = "Total charge"
@copy_key = "lettings.income_and_benefits.rent_monthly.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01
@readonly = true
@prefix = "£"

4
app/models/form/lettings/questions/tcharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@check_answer_label = "Household rent and charges"
@header = "Total charge"
@copy_key = "lettings.income_and_benefits.rent_weekly.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0
@min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01
@readonly = true
@prefix = "£"

3
app/models/form/lettings/questions/tshortfall.rb

@ -2,8 +2,7 @@ class Form::Lettings::Questions::Tshortfall < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tshortfall"
@check_answer_label = "Estimated outstanding amount"
@header = "Estimated outstanding amount"
@copy_key = "lettings.income_and_benefits.outstanding_amount.tshortfall"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

4
app/models/form/lettings/questions/tshortfall_known.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::TshortfallKnown < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tshortfall_known"
@check_answer_label = "Do you know the outstanding amount?"
@header = "Can you estimate the outstanding amount?"
@copy_key = "lettings.income_and_benefits.outstanding_amount.tshortfall_known"
@type = "radio"
@check_answers_card_number = 0
@hint_text = "You only need to give an approximate figure."
@answer_options = ANSWER_OPTIONS
@conditional_for = { "tshortfall" => [0] }
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

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

@ -0,0 +1,184 @@
en:
forms:
2023:
lettings:
income_and_benefits:
net_income_known:
page_header: "Household’s combined income after tax"
check_answer_label: "Do you know the household’s combined total income after tax?"
hint_text: ""
question_text: "Do you know the household’s combined income after tax?"
income_amount:
page_header: "Total household income"
incfreq:
check_answer_label: "How often does the household receive this amount?"
hint_text: ""
question_text: "How often does the household receive this amount?"
earnings:
check_answer_label: "Total household income"
hint_text: ""
question_text: "How much income does the household have in total?"
hb:
page_header: ""
check_answer_label: "Housing-related benefits received"
hint_text: ""
question_text: "Is the household likely to be receiving any of these housing-related benefits?"
benefits:
page_header: ""
check_answer_label: "Household income from Universal Credit, state pension or benefit"
hint_text: "This excludes child and housing benefit, council tax support and tax credits."
question_text: "How much of the household’s income is from Universal Credit, state pensions or benefits?"
household_charge:
page_header: ""
check_answer_label: "Does the household pay rent or charges"
hint_text: "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
question_text: "Does the household pay rent or other charges for the accommodation?"
period:
page_header: ""
check_answer_label: "Frequency of household rent and charges"
hint_text: "Select how often the household is charged. This may be different to how often they pay."
question_text: "How often does the household pay rent and other charges?"
care_home:
page_header: ""
is_carehome:
check_answer_label: "Care home accommodation"
hint_text: ""
question_text: "Is this accommodation a care home?"
chcharge:
weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every week?"
bi_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 2 weeks?"
four_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 4 weeks?"
monthly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every month?"
rent_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_bi_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_4_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_monthly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
hbrentshortfall:
page_header: ""
check_answer_label: "Any outstanding amount for basic rent and charges"
hint_text: "Also known as the ‘outstanding amount’."
question_text: ""
outstanding_amount:
page_header: ""
tshortfall_known:
check_answer_label: "Do you know the outstanding amount?"
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"

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

@ -0,0 +1,184 @@
en:
forms:
2024:
lettings:
income_and_benefits:
net_income_known:
page_header: "Household’s combined income after tax"
check_answer_label: "Do you know the household’s combined total income after tax?"
hint_text: ""
question_text: "Do you know the household’s combined income after tax?"
income_amount:
page_header: "Total household income"
incfreq:
check_answer_label: "How often does the household receive this amount?"
hint_text: ""
question_text: "How often does the household receive this amount?"
earnings:
check_answer_label: "Total household income"
hint_text: ""
question_text: "How much income does the household have in total?"
hb:
page_header: ""
check_answer_label: "Housing-related benefits received"
hint_text: ""
question_text: "Is the household likely to be receiving any of these housing-related benefits?"
benefits:
page_header: ""
check_answer_label: "Household income from Universal Credit, state pension or benefit"
hint_text: "This excludes child and housing benefit, council tax support and tax credits."
question_text: "How much of the household’s income is from Universal Credit, state pensions or benefits?"
household_charge:
page_header: ""
check_answer_label: "Does the household pay rent or charges"
hint_text: "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
question_text: "Does the household pay rent or other charges for the accommodation?"
period:
page_header: ""
check_answer_label: "Frequency of household rent and charges"
hint_text: "Select how often the household is charged. This may be different to how often they pay."
question_text: "How often does the household pay rent and other charges?"
care_home:
page_header: ""
is_carehome:
check_answer_label: "Care home accommodation"
hint_text: ""
question_text: "Is this accommodation a care home?"
chcharge:
weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every week?"
bi_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 2 weeks?"
four_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 4 weeks?"
monthly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every month?"
rent_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_bi_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_4_weekly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
rent_monthly:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
hbrentshortfall:
page_header: ""
check_answer_label: "Any outstanding amount for basic rent and charges"
hint_text: "Also known as the ‘outstanding amount’."
question_text: ""
outstanding_amount:
page_header: ""
tshortfall_known:
check_answer_label: "Do you know the outstanding amount?"
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"
Loading…
Cancel
Save