Browse Source

feat: add property info numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
58d503a118
  1. 1
      app/models/form/lettings/questions/beds.rb
  2. 1
      app/models/form/lettings/questions/builtype.rb
  3. 1
      app/models/form/lettings/questions/first_time_property_let_as_social_housing.rb
  4. 1
      app/models/form/lettings/questions/la.rb
  5. 1
      app/models/form/lettings/questions/majorrepairs.rb
  6. 1
      app/models/form/lettings/questions/mrcdate.rb
  7. 1
      app/models/form/lettings/questions/offered.rb
  8. 1
      app/models/form/lettings/questions/offered_social_let.rb
  9. 1
      app/models/form/lettings/questions/rsnvac.rb
  10. 1
      app/models/form/lettings/questions/rsnvac_first_let.rb
  11. 1
      app/models/form/lettings/questions/unitletas.rb
  12. 1
      app/models/form/lettings/questions/unittype_gn.rb
  13. 1
      app/models/form/lettings/questions/voiddate.rb
  14. 1
      app/models/form/lettings/questions/voiddate_new_build.rb
  15. 1
      app/models/form/lettings/questions/wheelchair.rb

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Beds < ::Form::Question
@min = 0 @min = 0
@hint_text = "If shared accommodation, enter the number of bedrooms occupied by this household. A bedsit has 1 bedroom." @hint_text = "If shared accommodation, enter the number of bedrooms occupied by this household. A bedsit has 1 bedroom."
@step = 1 @step = 1
@question_number = 22
end end
end end

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

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

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::FirstTimePropertyLetAsSocialHousing < ::Form::Q
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "" @hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 14
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

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

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

@ -9,6 +9,7 @@ class Form::Lettings::Questions::Majorrepairs < ::Form::Question
@hint_text = "Major repairs are works that could not be reasonably carried out with a tenant living at the property. For example, structural repairs." @hint_text = "Major repairs are works that could not be reasonably carried out with a tenant living at the property. For example, structural repairs."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { "mrcdate" => [1] } @conditional_for = { "mrcdate" => [1] }
@question_number = 24
end end
ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "0" => { "value" => "No" } }.freeze ANSWER_OPTIONS = { "1" => { "value" => "Yes" }, "0" => { "value" => "No" } }.freeze

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

@ -7,5 +7,6 @@ class Form::Lettings::Questions::Mrcdate < ::Form::Question
@type = "date" @type = "date"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "For example, 27 3 2021." @hint_text = "For example, 27 3 2021."
@question_number = 24
end end
end end

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::Offered < ::Form::Question
@min = 0 @min = 0
@hint_text = "This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0." @hint_text = "This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0."
@step = 1 @step = 1
@question_number = 18
end end
end end

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

@ -11,5 +11,6 @@ class Form::Lettings::Questions::OfferedSocialLet < ::Form::Question
@min = 0 @min = 0
@hint_text = "If the property is being offered for let for the first time, enter 0." @hint_text = "If the property is being offered for let for the first time, enter 0."
@step = 1 @step = 1
@question_number = 18
end end
end end

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

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

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

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

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

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

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

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

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

@ -6,5 +6,6 @@ class Form::Lettings::Questions::Voiddate < ::Form::Question
@header = "What is the void or renewal date?" @header = "What is the void or renewal date?"
@type = "date" @type = "date"
@check_answers_card_number = 0 @check_answers_card_number = 0
@question_number = 23
end end
end end

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

@ -7,5 +7,6 @@ class Form::Lettings::Questions::VoiddateNewBuild < ::Form::Question
@type = "date" @type = "date"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "" @hint_text = ""
@question_number = 23
end end
end end

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

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

Loading…
Cancel
Save