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.
 
 
 
 

30 lines
1.2 KiB

<ol class="app-task-list govuk-!-margin-top-8">
<% @case_log.form.sections.map do |section| %>
<li>
<h2 class="app-task-list__section-heading">
<%= section.label %>
</h2>
<% if section.description %>
<p class="govuk-body"><%= section.description.html_safe %></p>
<% end %>
<ul class="app-task-list__items">
<% section.subsections.map do |subsection| %>
<% subsection_status = subsection.status(@case_log) %>
<li class="app-task-list__item">
<span class="app-task-list__task-name">
<%= subsection_link(subsection, @case_log) %>
</span>
<strong class="govuk-tag app-task-list__tag <%= TasklistHelper::STYLES[subsection_status] %>"
id="<%= subsection.id.dasherize %>">
<%= TasklistHelper::STATUSES[subsection_status] %>
</strong>
</li>
<% end %>
</ul>
</li>
<% end %>
</ol>
<h2 class="govuk-heading-m">Review and submit</h2>
<p>Review your answers and submit this log to the Department of Levelling Up, Housing & Communities.</p>
<%= govuk_button_link_to 'Review lettings log', "/logs/#{@case_log.id}/review" %>