From f7986b0719d58732a6446de6ad6fb32038fa3b64 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Thu, 13 Jan 2022 14:59:54 +0000 Subject: [PATCH] form alphabetising and lint fixes --- app/models/constants/case_log.rb | 16 ++++++++-------- config/forms/2021_2022.json | 30 +++++++++++++++--------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb index cd401f55f..7121109cd 100644 --- a/app/models/constants/case_log.rb +++ b/app/models/constants/case_log.rb @@ -1082,16 +1082,16 @@ module Constants::CaseLog "Universal Credit (without housing element)", "Housing benefit and Universal Credit (without housing element)"].freeze - STATUS = { - "not_started" => 0, - "in_progress" => 1, - "completed" => 2 + STATUS = { + "not_started" => 0, + "in_progress" => 1, + "completed" => 2, }.freeze SHELTERED_ACCOMODATION = { - "Yes - sheltered housing" => 0, - "Yes - extra care housing" => 1, - "No" => 2, - "Don't know" => 3 + "Yes - sheltered housing" => 1, + "Yes - extra care housing" => 2, + "No" => 3, + "Don't know" => 4, }.freeze end diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 9f4484411..8f5fab567 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1080,10 +1080,10 @@ "hint_text": "", "type": "radio", "answer_options": { - "0": "Secure (including flexible)", - "1": "Assured", - "2": "Assured Shorthold", - "3": "Licence agreement (almshouses only)", + "0": "Assured", + "1": "Assured Shorthold", + "2": "Licence agreement (almshouses only)", + "3": "Secure (including flexible)", "4": "Other" }, "conditional_for": { @@ -1108,10 +1108,10 @@ "hint_text": "This is also known as an 'introductory period'.", "type": "radio", "answer_options": { - "0": "Secure (including flexible)", - "1": "Assured", - "2": "Assured Shorthold", - "3": "Licence agreement (almshouses only)", + "0": "Assured", + "1": "Assured Shorthold", + "2": "Licence agreement (almshouses only)", + "3": "Secure (including flexible)", "4": "Other" }, "conditional_for": { @@ -2003,15 +2003,15 @@ "hint_text": "", "type": "radio", "answer_options": { - "0": "Weekly for 52 weeks", + "0": "Calendar monthly", "1": "Fortnightly", "2": "Four-weekly", - "3": "Calendar monthly", - "4": "Weekly for 50 weeks", - "5": "Weekly for 49 weeks", - "6": "Weekly for 48 weeks", - "7": "Weekly for 47 weeks", - "8": "Weekly for 46 weeks", + "3": "Weekly for 46 weeks", + "4": "Weekly for 47 weeks", + "5": "Weekly for 48 weeks", + "6": "Weekly for 49 weeks", + "7": "Weekly for 50 weeks", + "8": "Weekly for 52 weeks", "9": "Weekly for 53 weeks" } }