Browse Source

refactor: highlight multiplication in brackets

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
0fb6a0f0c1
  1. 2
      app/models/form/lettings/questions/age_known.rb
  2. 2
      app/models/form/lettings/questions/person_gender_identity.rb
  3. 2
      app/models/form/lettings/questions/person_relationship.rb
  4. 2
      app/models/form/lettings/questions/person_working_situation.rb
  5. 2
      app/models/form/sales/questions/person_age.rb
  6. 2
      app/models/form/sales/questions/person_age_known.rb
  7. 2
      app/models/form/sales/questions/person_gender_identity.rb
  8. 2
      app/models/form/sales/questions/person_relationship_to_buyer_1.rb
  9. 2
      app/models/form/sales/questions/person_working_situation.rb

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

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

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

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

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

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

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

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

2
app/models/form/sales/questions/person_age.rb

@ -12,6 +12,6 @@ class Form::Sales::Questions::PersonAge < ::Form::Question
@check_answers_card_number = person_index @check_answers_card_number = person_index
@min = 0 @min = 0
@max = 110 @max = 110
@question_number = 29 + person_index * 4 @question_number = 29 + (4 * person_index)
end end
end end

2
app/models/form/sales/questions/person_age_known.rb

@ -19,7 +19,7 @@ class Form::Sales::Questions::PersonAgeKnown < ::Form::Question
], ],
} }
@check_answers_card_number = person_index @check_answers_card_number = person_index
@question_number = 29 + person_index * 4 @question_number = 29 + (4 * person_index)
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

2
app/models/form/sales/questions/person_gender_identity.rb

@ -12,7 +12,7 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 30 + person_index * 4 @question_number = 30 + (4 * person_index)
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

2
app/models/form/sales/questions/person_relationship_to_buyer_1.rb

@ -12,7 +12,7 @@ class Form::Sales::Questions::PersonRelationshipToBuyer1 < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 28 + person_index * 4 @question_number = 28 + (4 * person_index)
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

2
app/models/form/sales/questions/person_working_situation.rb

@ -12,7 +12,7 @@ class Form::Sales::Questions::PersonWorkingSituation < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 31 + person_index * 4 @question_number = 31 + (4 * person_index)
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

Loading…
Cancel
Save