Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class CaseLogsController < ApplicationController
|
|
|
|
def index
|
|
|
|
@submitted_case_logs = CaseLog.where(status: 1)
|
|
|
|
@in_progress_case_logs = CaseLog.where(status: 0)
|
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
|
|
|
@case_log = CaseLog.find(params[:id])
|
|
|
|
end
|
|
|
|
|
|
|
|
def edit
|
|
|
|
@case_log = CaseLog.find(params[:id])
|
|
|
|
render 'case_logs/household/tenant_code'
|
|
|
|
end
|
|
|
|
|
|
|
|
def update
|
|
|
|
@case_log = CaseLog.find(params[:id])
|
|
|
|
@case_log.update(tenant_code: params[:case_log][:tenant_code]) if params[:case_log]
|
|
|
|
render_next_question(@case_log)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def render_next_question(case_log)
|
|
|
|
render 'case_logs/household/tenant_age'
|
|
|
|
end
|
|
|
|
end
|