Browse Source

Form question namespacing

pull/21/head
baarkerlounger 3 years ago
parent
commit
88ab467eb7
  1. 10
      app/controllers/case_logs_controller.rb
  2. 0
      app/views/form/questions/household/tenant_age.html.erb
  3. 0
      app/views/form/questions/household/tenant_code.html.erb
  4. 0
      app/views/form/questions/household/tenant_gender.html.erb

10
app/controllers/case_logs_controller.rb

@ -20,14 +20,14 @@ class CaseLogsController < ApplicationController
end end
FIRST_QUESTION_FOR_SUBSECTION = { FIRST_QUESTION_FOR_SUBSECTION = {
"Household characteristics" => "case_logs/household/tenant_code", "Household characteristics" => "form/questions/household/tenant_code",
}.freeze }.freeze
NEXT_QUESTION = { NEXT_QUESTION = {
"tenant_code" => "case_logs/household/tenant_age", "tenant_code" => "form/questions/household/tenant_age",
"tenant_age" => "case_logs/household/tenant_gender", "tenant_age" => "form/questions/household/tenant_gender",
"tenant_gender" => "case_logs/household/tenant_ethnic_group", "tenant_gender" => "form/questions/household/tenant_ethnic_group",
"tenant_ethnic_group" => "case_logs/household/tenant_nationality", "tenant_ethnic_group" => "form/questions/household/tenant_nationality",
}.freeze }.freeze
def next_question def next_question

0
app/views/case_logs/household/tenant_age.html.erb → app/views/form/questions/household/tenant_age.html.erb

0
app/views/case_logs/household/tenant_code.html.erb → app/views/form/questions/household/tenant_code.html.erb

0
app/views/case_logs/household/tenant_gender.html.erb → app/views/form/questions/household/tenant_gender.html.erb

Loading…
Cancel
Save