Browse Source

feat: add lettings setup numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
cc0cbba41e
  1. 1
      app/models/form/lettings/questions/irproduct_other.rb
  2. 1
      app/models/form/lettings/questions/location_id.rb
  3. 1
      app/models/form/lettings/questions/managing_organisation.rb
  4. 1
      app/models/form/lettings/questions/needs_type.rb
  5. 1
      app/models/form/lettings/questions/property_reference.rb
  6. 1
      app/models/form/lettings/questions/renewal.rb
  7. 1
      app/models/form/lettings/questions/rent_type.rb
  8. 1
      app/models/form/lettings/questions/scheme_id.rb
  9. 1
      app/models/form/lettings/questions/stock_owner.rb
  10. 1
      app/models/form/lettings/questions/tenancy_start_date.rb
  11. 1
      app/models/form/lettings/questions/tenant_code.rb

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

@ -5,5 +5,6 @@ class Form::Lettings::Questions::IrproductOther < ::Form::Question
@check_answer_label = "Product name"
@header = "Name of rent product"
@type = "text"
@question_number = 6
end
end

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

@ -10,6 +10,7 @@ class Form::Lettings::Questions::LocationId < ::Form::Question
"needstype": 2,
},
}
@question_number = 10
end
def answer_options

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

@ -5,6 +5,7 @@ class Form::Lettings::Questions::ManagingOrganisation < ::Form::Question
@check_answer_label = "Managing agent"
@header = "Which organisation manages this letting?"
@type = "select"
@question_number = 2
end
def answer_options(log = nil, user = nil)

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

@ -7,6 +7,7 @@ class Form::Lettings::Questions::NeedsType < ::Form::Question
@hint_text = "General needs housing includes both self-contained and shared housing without support or specific adaptations. Supported housing can include direct access hostels, group homes, residential care and nursing homes."
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 3
end
ANSWER_OPTIONS = {

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

@ -7,5 +7,6 @@ class Form::Lettings::Questions::PropertyReference < ::Form::Question
@hint_text = "This is how you usually refer to this property on your own systems."
@type = "text"
@width = 10
@question_number = 8
end
end

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

@ -7,6 +7,7 @@ class Form::Lettings::Questions::Renewal < ::Form::Question
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = "A renewal is a letting to the same tenant in the same property"
@question_number = 4
end
ANSWER_OPTIONS = {

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

@ -7,6 +7,7 @@ class Form::Lettings::Questions::RentType < ::Form::Question
@type = "radio"
@answer_options = ANSWER_OPTIONS
@conditional_for = { "irproduct_other" => [5] }
@question_number = 6
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Lettings::Questions::SchemeId < ::Form::Question
@answer_options = answer_options
@guidance_position = GuidancePosition::BOTTOM
@guidance_partial = "scheme_selection"
@question_number = 9
end
def answer_options

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

@ -5,6 +5,7 @@ class Form::Lettings::Questions::StockOwner < ::Form::Question
@check_answer_label = "Stock owner"
@header = "Which organisation owns this property?"
@type = "select"
@question_number = 1
end
def answer_options(log = nil, user = nil)

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

@ -6,5 +6,6 @@ class Form::Lettings::Questions::TenancyStartDate < ::Form::Question
@header = "What is the tenancy start date?"
@type = "date"
@unresolved_hint_text = "Some scheme details have changed, and now this log needs updating. Check that the tenancy start date is correct."
@question_number = 5
end
end

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

@ -7,5 +7,6 @@ class Form::Lettings::Questions::TenantCode < ::Form::Question
@hint_text = "This is how you usually refer to this tenancy on your own systems."
@type = "text"
@width = 10
@question_number = 7
end
end

Loading…
Cancel
Save