Browse Source

feat: add household situ numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
74d2fc0a05
  1. 1
      app/models/form/lettings/questions/homeless.rb
  2. 1
      app/models/form/lettings/questions/layear.rb
  3. 1
      app/models/form/lettings/questions/letting_allocation.rb
  4. 1
      app/models/form/lettings/questions/ppcodenk.rb
  5. 1
      app/models/form/lettings/questions/ppostcode_full.rb
  6. 1
      app/models/form/lettings/questions/previous_la_known.rb
  7. 1
      app/models/form/lettings/questions/prevloc.rb
  8. 1
      app/models/form/lettings/questions/prevten.rb
  9. 1
      app/models/form/lettings/questions/prevten_renewal.rb
  10. 1
      app/models/form/lettings/questions/reason.rb
  11. 1
      app/models/form/lettings/questions/reason_renewal.rb
  12. 1
      app/models/form/lettings/questions/reasonable_preference_reason.rb
  13. 1
      app/models/form/lettings/questions/reasonother.rb
  14. 1
      app/models/form/lettings/questions/reasonpref.rb
  15. 1
      app/models/form/lettings/questions/referral.rb
  16. 1
      app/models/form/lettings/questions/referral_prp.rb
  17. 1
      app/models/form/lettings/questions/referral_supported_housing.rb
  18. 1
      app/models/form/lettings/questions/referral_supported_housing_prp.rb
  19. 1
      app/models/form/lettings/questions/waityear.rb

1
app/models/form/lettings/questions/homeless.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Homeless < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 79
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/layear.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Layear < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 75
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/letting_allocation.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::LettingAllocation < ::Form::Question
@check_answers_card_number = 0
@hint_text = "Select all that apply."
@answer_options = ANSWER_OPTIONS
@question_number = 84
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/ppcodenk.rb

@ -10,6 +10,7 @@ class Form::Lettings::Questions::Ppcodenk < ::Form::Question
@answer_options = ANSWER_OPTIONS
@conditional_for = { "ppostcode_full" => [1] }
@hidden_in_check_answers = { "depends_on" => [{ "ppcodenk" => 0 }, { "ppcodenk" => 1 }] }
@question_number = 80
end
ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "0" => { "value" => "No" } }.freeze

1
app/models/form/lettings/questions/ppostcode_full.rb

@ -10,5 +10,6 @@ class Form::Lettings::Questions::PpostcodeFull < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@inferred_answers = { "prevloc" => { "is_previous_la_inferred" => true } }
@question_number = 80
end
end

1
app/models/form/lettings/questions/previous_la_known.rb

@ -10,6 +10,7 @@ class Form::Lettings::Questions::PreviousLaKnown < ::Form::Question
@answer_options = ANSWER_OPTIONS
@conditional_for = { "prevloc" => [1] }
@hidden_in_check_answers = { "depends_on" => [{ "previous_la_known" => 0 }, { "previous_la_known" => 1 }] }
@question_number = 81
end
ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "0" => { "value" => "No" } }.freeze

1
app/models/form/lettings/questions/prevloc.rb

@ -9,6 +9,7 @@ class Form::Lettings::Questions::Prevloc < ::Form::Question
@check_answers_card_number = 0
@hint_text = "Select ‘Northern Ireland’, ‘Scotland’, ‘Wales’ or ‘Outside the UK’ if the household’s last settled home was outside England."
@answer_options = ANSWER_OPTIONS
@question_number = 81
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/prevten.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Prevten < ::Form::Question
@check_answers_card_number = 0
@hint_text = "This is where the household was the night before they moved."
@answer_options = ANSWER_OPTIONS
@question_number = 78
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/prevten_renewal.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::PrevtenRenewal < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 78
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/reason.rb

@ -13,6 +13,7 @@ class Form::Lettings::Questions::Reason < ::Form::Question
20,
],
}
@question_number = 77
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/reason_renewal.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::ReasonRenewal < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 77
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/reasonable_preference_reason.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::ReasonablePreferenceReason < ::Form::Question
@check_answers_card_number = 0
@hint_text = "Select all that apply."
@answer_options = ANSWER_OPTIONS
@question_number = 83
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/reasonother.rb

@ -7,5 +7,6 @@ class Form::Lettings::Questions::Reasonother < ::Form::Question
@type = "text"
@check_answers_card_number = 0
@hint_text = ""
@question_number = 77
end
end

1
app/models/form/lettings/questions/reasonpref.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Reasonpref < ::Form::Question
@check_answers_card_number = 0
@hint_text = "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority."
@answer_options = ANSWER_OPTIONS
@question_number = 82
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/referral.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Referral < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 85
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/referral_prp.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::ReferralPrp < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 85
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/referral_supported_housing.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::ReferralSupportedHousing < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 85
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/referral_supported_housing_prp.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::ReferralSupportedHousingPrp < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 85
end
ANSWER_OPTIONS = {

1
app/models/form/lettings/questions/waityear.rb

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Waityear < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 76
end
ANSWER_OPTIONS = {

Loading…
Cancel
Save