<% class_name = @log.class.model_name.human.downcase %> <% content_for :title, "Review #{class_name}" %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { "Logs" => url_for(@log.class), "Log #{@log.id}" => url_for(@log), "Review #{class_name}" => "", }) %>

<%= content_for(:title) %>

<%= review_log_text(@log) %>

<% @log.form.sections.map do |section| %>

<%= section.label %>

<% section.subsections.map do |subsection| %> <% if total_applicable_questions(subsection, @log, current_user).any? %>

<%= subsection.label %>

<%= render partial: "form/check_answers_summary_list", locals: { subsection: } %>
<% end %> <% end %> <% end %>