Browse Source

Rename key to rent_and_charges

pull/2732/head
Manny Dinssa 8 months ago
parent
commit
bf72f07723
  1. 2
      app/models/form/lettings/pages/rent_4_weekly.rb
  2. 2
      app/models/form/lettings/pages/rent_bi_weekly.rb
  3. 2
      app/models/form/lettings/pages/rent_monthly.rb
  4. 2
      app/models/form/lettings/pages/rent_weekly.rb
  5. 2
      app/models/form/lettings/questions/brent_4_weekly.rb
  6. 2
      app/models/form/lettings/questions/brent_bi_weekly.rb
  7. 2
      app/models/form/lettings/questions/brent_monthly.rb
  8. 2
      app/models/form/lettings/questions/brent_weekly.rb
  9. 2
      app/models/form/lettings/questions/pscharge_4_weekly.rb
  10. 2
      app/models/form/lettings/questions/pscharge_bi_weekly.rb
  11. 2
      app/models/form/lettings/questions/pscharge_monthly.rb
  12. 2
      app/models/form/lettings/questions/pscharge_weekly.rb
  13. 2
      app/models/form/lettings/questions/scharge_4_weekly.rb
  14. 2
      app/models/form/lettings/questions/scharge_bi_weekly.rb
  15. 2
      app/models/form/lettings/questions/scharge_monthly.rb
  16. 2
      app/models/form/lettings/questions/scharge_weekly.rb
  17. 2
      app/models/form/lettings/questions/supcharg_4_weekly.rb
  18. 2
      app/models/form/lettings/questions/supcharg_bi_weekly.rb
  19. 2
      app/models/form/lettings/questions/supcharg_monthly.rb
  20. 2
      app/models/form/lettings/questions/supcharg_weekly.rb
  21. 2
      app/models/form/lettings/questions/tcharge_4_weekly.rb
  22. 2
      app/models/form/lettings/questions/tcharge_bi_weekly.rb
  23. 2
      app/models/form/lettings/questions/tcharge_monthly.rb
  24. 2
      app/models/form/lettings/questions/tcharge_weekly.rb
  25. 2
      config/locales/forms/2023/lettings/income_and_benefits.en.yml
  26. 2
      config/locales/forms/2024/lettings/income_and_benefits.en.yml

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"
@copy_key = "lettings.income_and_benefits.rent"
@copy_key = "lettings.income_and_benefits.rent_and_charges"
@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"
@copy_key = "lettings.income_and_benefits.rent"
@copy_key = "lettings.income_and_benefits.rent_and_charges"
@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"
@copy_key = "lettings.income_and_benefits.rent"
@copy_key = "lettings.income_and_benefits.rent_and_charges"
@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"
@copy_key = "lettings.income_and_benefits.rent"
@copy_key = "lettings.income_and_benefits.rent_and_charges"
@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 },

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Brent4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@copy_key = "lettings.income_and_benefits.rent.brent"
@copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::BrentBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@copy_key = "lettings.income_and_benefits.rent.brent"
@copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::BrentMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@copy_key = "lettings.income_and_benefits.rent.brent"
@copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::BrentWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "brent"
@copy_key = "lettings.income_and_benefits.rent.brent"
@copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Pscharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@copy_key = "lettings.income_and_benefits.rent.pscharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::PschargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@copy_key = "lettings.income_and_benefits.rent.pscharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::PschargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@copy_key = "lettings.income_and_benefits.rent.pscharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::PschargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "pscharge"
@copy_key = "lettings.income_and_benefits.rent.pscharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Scharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@copy_key = "lettings.income_and_benefits.rent.scharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@copy_key = "lettings.income_and_benefits.rent.scharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SchargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@copy_key = "lettings.income_and_benefits.rent.scharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SchargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "scharge"
@copy_key = "lettings.income_and_benefits.rent.scharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Supcharg4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@copy_key = "lettings.income_and_benefits.rent.supcharg"
@copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SupchargBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@copy_key = "lettings.income_and_benefits.rent.supcharg"
@copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SupchargMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@copy_key = "lettings.income_and_benefits.rent.supcharg"
@copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::SupchargWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "supcharg"
@copy_key = "lettings.income_and_benefits.rent.supcharg"
@copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@type = "numeric"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::Tcharge4Weekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@copy_key = "lettings.income_and_benefits.rent.tcharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::TchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@copy_key = "lettings.income_and_benefits.rent.tcharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::TchargeMonthly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@copy_key = "lettings.income_and_benefits.rent.tcharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0

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

@ -2,7 +2,7 @@ class Form::Lettings::Questions::TchargeWeekly < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tcharge"
@copy_key = "lettings.income_and_benefits.rent.tcharge"
@copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@type = "numeric_output"
@width = 5
@check_answers_card_number = 0

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

@ -67,7 +67,7 @@ en:
hint_text: ""
question_text: "How much does the household pay every month?"
rent:
rent_and_charges:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"

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

@ -67,7 +67,7 @@ en:
hint_text: ""
question_text: "How much does the household pay every month?"
rent:
rent_and_charges:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"

Loading…
Cancel
Save