diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index 262fff240..4f90f0ac1 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -1,7 +1,16 @@ class CaseLogsController < ApplicationController - def index; end + 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 + end + + def new + end end diff --git a/app/controllers/form_controller.rb b/app/controllers/form_controller.rb deleted file mode 100644 index e94890a54..000000000 --- a/app/controllers/form_controller.rb +++ /dev/null @@ -1,3 +0,0 @@ -class FormController < ApplicationController - def index; end -end diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb new file mode 100644 index 000000000..efc434dd8 --- /dev/null +++ b/app/views/case_logs/_log_list.html.erb @@ -0,0 +1,27 @@ +
Log reference | +Postcode | +Tenant code | +<%= date_title %> | +
---|---|---|---|
+ <%= link_to log.id, case_log_path(log) %> + | ++ | ++ | ++ <%= log.updated_at.strftime("%d %b %Y") %> + | +