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.
26 lines
964 B
26 lines
964 B
3 years ago
|
<ol class="app-task-list govuk-!-margin-top-8">
|
||
2 years ago
|
<% @log.form.sections.map do |section| %>
|
||
3 years ago
|
<li>
|
||
3 years ago
|
<h2 class="app-task-list__section-heading">
|
||
|
<%= section.label %>
|
||
3 years ago
|
</h2>
|
||
3 years ago
|
<% if section.description %>
|
||
|
<p class="govuk-body"><%= section.description.html_safe %></p>
|
||
|
<% end %>
|
||
3 years ago
|
<ul class="app-task-list__items">
|
||
3 years ago
|
<% section.subsections.map do |subsection| %>
|
||
2 years ago
|
<% if subsection.applicable_questions(@log).count > 0 || !subsection.enabled?(@log) %>
|
||
|
<% subsection_status = subsection.status(@log) %>
|
||
3 years ago
|
<li class="app-task-list__item">
|
||
|
<span class="app-task-list__task-name" id="<%= subsection.id.dasherize %>">
|
||
2 years ago
|
<%= subsection_link(subsection, @log, current_user) %>
|
||
3 years ago
|
</span>
|
||
|
<%= status_tag(subsection_status, "app-task-list__tag") %>
|
||
|
</li>
|
||
|
<% end %>
|
||
3 years ago
|
<% end %>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<% end %>
|
||
3 years ago
|
</ol>
|