From 88ab467eb7ea12ccbcd85657107e072078b46452 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 15 Sep 2021 16:31:26 +0100 Subject: [PATCH] Form question namespacing --- app/controllers/case_logs_controller.rb | 10 +++++----- .../questions}/household/tenant_age.html.erb | 0 .../questions}/household/tenant_code.html.erb | 0 .../questions}/household/tenant_gender.html.erb | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename app/views/{case_logs => form/questions}/household/tenant_age.html.erb (100%) rename app/views/{case_logs => form/questions}/household/tenant_code.html.erb (100%) rename app/views/{case_logs => form/questions}/household/tenant_gender.html.erb (100%) diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index d19f96bc1..08b7a24a8 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -20,14 +20,14 @@ class CaseLogsController < ApplicationController end FIRST_QUESTION_FOR_SUBSECTION = { - "Household characteristics" => "case_logs/household/tenant_code", + "Household characteristics" => "form/questions/household/tenant_code", }.freeze NEXT_QUESTION = { - "tenant_code" => "case_logs/household/tenant_age", - "tenant_age" => "case_logs/household/tenant_gender", - "tenant_gender" => "case_logs/household/tenant_ethnic_group", - "tenant_ethnic_group" => "case_logs/household/tenant_nationality", + "tenant_code" => "form/questions/household/tenant_age", + "tenant_age" => "form/questions/household/tenant_gender", + "tenant_gender" => "form/questions/household/tenant_ethnic_group", + "tenant_ethnic_group" => "form/questions/household/tenant_nationality", }.freeze def next_question diff --git a/app/views/case_logs/household/tenant_age.html.erb b/app/views/form/questions/household/tenant_age.html.erb similarity index 100% rename from app/views/case_logs/household/tenant_age.html.erb rename to app/views/form/questions/household/tenant_age.html.erb diff --git a/app/views/case_logs/household/tenant_code.html.erb b/app/views/form/questions/household/tenant_code.html.erb similarity index 100% rename from app/views/case_logs/household/tenant_code.html.erb rename to app/views/form/questions/household/tenant_code.html.erb diff --git a/app/views/case_logs/household/tenant_gender.html.erb b/app/views/form/questions/household/tenant_gender.html.erb similarity index 100% rename from app/views/case_logs/household/tenant_gender.html.erb rename to app/views/form/questions/household/tenant_gender.html.erb