From 5ed803038bb200d078229b383881745ebc157953 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 10 Sep 2021 11:28:58 +0100 Subject: [PATCH] Mockup the tasklist page --- app/views/case_logs/show.html.erb | 57 ++++++++++++++++++------------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/app/views/case_logs/show.html.erb b/app/views/case_logs/show.html.erb index 76dac1f86..e005f74a0 100644 --- a/app/views/case_logs/show.html.erb +++ b/app/views/case_logs/show.html.erb @@ -1,29 +1,38 @@ -

Tasklist for log <%= @case_log.id %>

+

Tasklist for log + <%= @case_log.id %>

-

This submission is <%= @case_log.status %>

+

This submission is + <%= @case_log.status %>

+

You've completed 0 of 9 sections.

+

+ Skip to next incomplete section +

-
+<%# Placeholder until we have a real form schema %> +<% + sections = { + "About the household" => ["Household characteristics", "Household situation", "Household needs"], + "Tenancy and property information" => ["Tenancy information", "Property information"], + "Rent and charges" => ["Income & benefits", "Rent"], + "Local Authority" => ["Local authority"], + "Submission" => ["Declaration"] + } +%>
    -
  1. -

    - About the household -

    - -
  2. + <% sections.map do |section, subsections| %> +
  3. +

    + <%= section %> +

    +
      + <% subsections.map do |subsection| %> +
    • + <%= subsection %> + Not started +
    • + <% end %> +
    +
  4. + <% end %>