Browse Source

feat: add household char numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
9eb118cbee
  1. 1
      app/models/form/lettings/questions/age.rb
  2. 1
      app/models/form/lettings/questions/age1.rb
  3. 1
      app/models/form/lettings/questions/age1_known.rb
  4. 1
      app/models/form/lettings/questions/age_known.rb
  5. 3
      app/models/form/lettings/questions/declaration.rb
  6. 1
      app/models/form/lettings/questions/ethnic_arab.rb
  7. 1
      app/models/form/lettings/questions/ethnic_asian.rb
  8. 1
      app/models/form/lettings/questions/ethnic_black.rb
  9. 1
      app/models/form/lettings/questions/ethnic_group.rb
  10. 1
      app/models/form/lettings/questions/ethnic_mixed.rb
  11. 1
      app/models/form/lettings/questions/ethnic_white.rb
  12. 1
      app/models/form/lettings/questions/gender_identity1.rb
  13. 1
      app/models/form/lettings/questions/hhmemb.rb
  14. 1
      app/models/form/lettings/questions/joint.rb
  15. 1
      app/models/form/lettings/questions/national.rb
  16. 1
      app/models/form/lettings/questions/person_gender_identity.rb
  17. 1
      app/models/form/lettings/questions/person_relationship.rb
  18. 1
      app/models/form/lettings/questions/person_working_situation.rb
  19. 1
      app/models/form/lettings/questions/sheltered.rb
  20. 1
      app/models/form/lettings/questions/starter_tenancy.rb
  21. 1
      app/models/form/lettings/questions/startertenancy.rb
  22. 1
      app/models/form/lettings/questions/tenancy.rb
  23. 1
      app/models/form/lettings/questions/tenancylength.rb
  24. 1
      app/models/form/lettings/questions/tenancyother.rb
  25. 1
      app/models/form/lettings/questions/working_situation1.rb

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Age < ::Form::Question
@max = 120
@min = 0
@step = 1
@question_number = 31 + 4 * person_index
end
end

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Age1 < ::Form::Question
@max = 120
@min = 16
@step = 1
@question_number = 32
end
end

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

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

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

@ -15,6 +15,7 @@ class Form::Lettings::Questions::AgeKnown < ::Form::Question
{ "age#{person_index}_known" => 1 },
],
}
@question_number = 31 + 4 * person_index
end
ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" } }.freeze

3
app/models/form/lettings/questions/declaration.rb

@ -3,11 +3,12 @@ class Form::Lettings::Questions::Declaration < ::Form::Question
super
@id = "declaration"
@check_answer_label = "Tenant has seen the privacy notice"
@header = ""
@header = "Declaration"
@type = "checkbox"
@check_answers_card_number = 0
@guidance_partial = "privacy_notice_tenant"
@answer_options = ANSWER_OPTIONS
@question_number = 30
end
ANSWER_OPTIONS = { "declaration" => { "value" => "The tenant has seen the DLUHC privacy notice" } }.freeze

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicArab < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 35
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicAsian < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 35
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicBlack < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 35
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicGroup < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 34
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicMixed < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 35
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::EthnicWhite < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 35
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::GenderIdentity1 < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 33
end
ANSWER_OPTIONS = {

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Hhmemb < ::Form::Question
@min = 1
@hint_text = "You can provide details for a maximum of 8 people."
@step = 1
@question_number = 31
end
end

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

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

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::National < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 36
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::PersonGenderIdentity < ::Form::Question
@check_answers_card_number = person_index
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 32 + 4 * person_index
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::PersonRelationship < ::Form::Question
@check_answers_card_number = person_index
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 30 + 4 * person_index
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::PersonWorkingSituation < ::Form::Question
@check_answers_card_number = person_index
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 33 + 4 * person_index
end
ANSWER_OPTIONS = {

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

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

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

@ -9,6 +9,7 @@ class Form::Lettings::Questions::StarterTenancy < ::Form::Question
@hint_text = "This is also known as an ‘introductory period’."
@answer_options = ANSWER_OPTIONS
@conditional_for = { "tenancyother" => [3] }
@question_number = 27
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::Startertenancy < ::Form::Question
@check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@question_number = 26
end
ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "2" => { "value" => "No" } }.freeze

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

@ -9,6 +9,7 @@ class Form::Lettings::Questions::Tenancy < ::Form::Question
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@conditional_for = { "tenancyother" => [3] }
@question_number = 27
end
ANSWER_OPTIONS = {

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Tenancylength < ::Form::Question
@min = 0
@hint_text = "Don’t include the starter or introductory period."
@step = 1
@question_number = 28
end
end

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

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

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::WorkingSituation1 < ::Form::Question
@check_answers_card_number = 1
@hint_text = "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@answer_options = ANSWER_OPTIONS
@question_number = 37
end
ANSWER_OPTIONS = {

Loading…
Cancel
Save