From e60bd4d3cb73498da486c49b9063d3ba7e300309 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 6 Jun 2024 17:50:23 +0100 Subject: [PATCH] Better capitalisation --- .../bulk_upload/lettings/year2023/row_parser.rb | 12 ++++++------ .../bulk_upload/lettings/year2024/row_parser.rb | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/services/bulk_upload/lettings/year2023/row_parser.rb b/app/services/bulk_upload/lettings/year2023/row_parser.rb index 8825c294c..93b82246d 100644 --- a/app/services/bulk_upload/lettings/year2023/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2023/row_parser.rb @@ -339,36 +339,36 @@ class BulkUpload::Lettings::Year2023::RowParser validates :field_116, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_116]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_116]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Choice-Based Lettings (CBL)"), if: -> { field_116.present? }, }, on: :after_log validates :field_117, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_117]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_117]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Common Allocation Policy (CAP)"), if: -> { field_117.present? }, }, on: :after_log validates :field_118, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_118]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_118]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Common Housing Register (CHR)"), if: -> { field_118.present? }, }, on: :after_log diff --git a/app/services/bulk_upload/lettings/year2024/row_parser.rb b/app/services/bulk_upload/lettings/year2024/row_parser.rb index 23cc4fd2a..bff3b1166 100644 --- a/app/services/bulk_upload/lettings/year2024/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2024/row_parser.rb @@ -339,48 +339,48 @@ class BulkUpload::Lettings::Year2024::RowParser validates :field_112, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_112]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_112]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Choice-Based Lettings (CBL)"), if: -> { field_112.present? }, }, on: :after_log validates :field_113, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_113]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_113]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Common Allocation Policy (CAP)"), if: -> { field_113.present? }, }, on: :after_log validates :field_114, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_114]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_114]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Common Housing Register (CHR)"), if: -> { field_114.present? }, }, on: :after_log validates :field_115, presence: { - message: I18n.t("validations.not_answered", question: QUESTIONS[:field_115]), + message: I18n.t("validations.not_answered", question: "was the letting made under the Accessible Register"), category: :not_answered, }, inclusion: { in: [1, 2], - message: I18n.t("validations.invalid_option", question: QUESTIONS[:field_115]), + message: I18n.t("validations.invalid_option", question: "was the letting made under the Accessible Register"), if: -> { field_115.present? }, }, on: :after_log