Browse Source

Mockup the tasklist page

pull/21/head
baarkerlounger 3 years ago
parent
commit
5ed803038b
  1. 57
      app/views/case_logs/show.html.erb

57
app/views/case_logs/show.html.erb

@ -1,29 +1,38 @@
<h1 class="govuk-heading-xl">Tasklist for log <%= @case_log.id %></h1>
<h1 class="govuk-heading-xl">Tasklist for log
<%= @case_log.id %></h1>
<h2 class="govuk-heading-s govuk-!-margin-bottom-2">This submission is <%= @case_log.status %></h2>
<h2 class="govuk-heading-s govuk-!-margin-bottom-2">This submission is
<%= @case_log.status %></h2>
<p class="govuk-body govuk-!-margin-bottom-7">You've completed 0 of 9 sections.</p>
<p class="govuk-body govuk-!-margin-bottom-7">
<a href="#">Skip to next incomplete section</a>
</p>
<br />
<%# 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"]
}
%>
<ol class="app-task-list app-task-list--no-numbers">
<li>
<h2 class="app-task-list__section">
<span class="app-task-list__section-number">About the household</span>
</h2>
<ul class="app-task-list__items">
<li class="app-task-list__item">
<a class="task-name" href="">Household characteristics</a>
<strong class="govuk-tag govuk-tag--grey app-task-list__tag">Not started</strong>
</li>
<li class="app-task-list__item">
<a class="task-name" href="">Household situation</a>
<strong class="govuk-tag govuk-tag--grey app-task-list__tag">Not started</strong>
</li>
<li class="app-task-list__item">
<a class="task-name" href="">Household needs</a>
<strong class="govuk-tag govuk-tag--grey app-task-list__tag">Not started</strong>
</li>
</ul>
</li>
<% sections.map do |section, subsections| %>
<li>
<h2 class="app-task-list__section">
<span class="app-task-list__section-number"><%= section %></span>
</h2>
<ul class="app-task-list__items">
<% subsections.map do |subsection| %>
<li class="app-task-list__item">
<a class="task-name" href=""><%= subsection %></a>
<strong class="govuk-tag govuk-tag--grey app-task-list__tag">Not started</strong>
</li>
<% end %>
</ul>
</li>
<% end %>
</ol>

Loading…
Cancel
Save