Browse Source

form alphabetising and lint fixes

pull/216/head
MadeTech Dushan 4 years ago
parent
commit
f7986b0719
  1. 16
      app/models/constants/case_log.rb
  2. 30
      config/forms/2021_2022.json

16
app/models/constants/case_log.rb

@ -1082,16 +1082,16 @@ module Constants::CaseLog
"Universal Credit (without housing element)", "Universal Credit (without housing element)",
"Housing benefit and Universal Credit (without housing element)"].freeze "Housing benefit and Universal Credit (without housing element)"].freeze
STATUS = { STATUS = {
"not_started" => 0, "not_started" => 0,
"in_progress" => 1, "in_progress" => 1,
"completed" => 2 "completed" => 2,
}.freeze }.freeze
SHELTERED_ACCOMODATION = { SHELTERED_ACCOMODATION = {
"Yes - sheltered housing" => 0, "Yes - sheltered housing" => 1,
"Yes - extra care housing" => 1, "Yes - extra care housing" => 2,
"No" => 2, "No" => 3,
"Don't know" => 3 "Don't know" => 4,
}.freeze }.freeze
end end

30
config/forms/2021_2022.json

@ -1080,10 +1080,10 @@
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": "Secure (including flexible)", "0": "Assured",
"1": "Assured", "1": "Assured Shorthold",
"2": "Assured Shorthold", "2": "Licence agreement (almshouses only)",
"3": "Licence agreement (almshouses only)", "3": "Secure (including flexible)",
"4": "Other" "4": "Other"
}, },
"conditional_for": { "conditional_for": {
@ -1108,10 +1108,10 @@
"hint_text": "This is also known as an 'introductory period'.", "hint_text": "This is also known as an 'introductory period'.",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": "Secure (including flexible)", "0": "Assured",
"1": "Assured", "1": "Assured Shorthold",
"2": "Assured Shorthold", "2": "Licence agreement (almshouses only)",
"3": "Licence agreement (almshouses only)", "3": "Secure (including flexible)",
"4": "Other" "4": "Other"
}, },
"conditional_for": { "conditional_for": {
@ -2003,15 +2003,15 @@
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": "Weekly for 52 weeks", "0": "Calendar monthly",
"1": "Fortnightly", "1": "Fortnightly",
"2": "Four-weekly", "2": "Four-weekly",
"3": "Calendar monthly", "3": "Weekly for 46 weeks",
"4": "Weekly for 50 weeks", "4": "Weekly for 47 weeks",
"5": "Weekly for 49 weeks", "5": "Weekly for 48 weeks",
"6": "Weekly for 48 weeks", "6": "Weekly for 49 weeks",
"7": "Weekly for 47 weeks", "7": "Weekly for 50 weeks",
"8": "Weekly for 46 weeks", "8": "Weekly for 52 weeks",
"9": "Weekly for 53 weeks" "9": "Weekly for 53 weeks"
} }
} }

Loading…
Cancel
Save