Browse Source

feat: number sales setup section

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
331c65b656
  1. 1
      app/models/form/sales/questions/buyer_company.rb
  2. 1
      app/models/form/sales/questions/buyer_live.rb
  3. 1
      app/models/form/sales/questions/discounted_ownership_type.rb
  4. 1
      app/models/form/sales/questions/joint_purchase.rb
  5. 1
      app/models/form/sales/questions/number_joint_buyers.rb
  6. 1
      app/models/form/sales/questions/outright_ownership_type.rb
  7. 1
      app/models/form/sales/questions/shared_ownership_type.rb

1
app/models/form/sales/questions/buyer_company.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::BuyerCompany < ::Form::Question
@header = "Is the buyer a company?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 7
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer_live.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::BuyerLive < ::Form::Question
@header = "Will the buyers live in the property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 8
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/discounted_ownership_type.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question
@header = "What is the type of discounted ownership sale?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 5
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/joint_purchase.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::JointPurchase < ::Form::Question
@header = "Is this a joint purchase?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 9
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/number_joint_buyers.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::NumberJointBuyers < ::Form::Question
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 10
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/outright_ownership_type.rb

@ -9,6 +9,7 @@ class Form::Sales::Questions::OutrightOwnershipType < ::Form::Question
@conditional_for = {
"othtype" => [12],
}
@question_number = 6
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/shared_ownership_type.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::SharedOwnershipType < ::Form::Question
@hint_text = "A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion"
@type = "radio"
@answer_options = answer_options
@question_number = 4
end
def answer_options

Loading…
Cancel
Save