% content_for :title, "Review lettings log" %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
"Logs" => "/logs",
"Log #{@case_log.id.to_s}" => "/logs/" + @case_log.id.to_s,
"Review lettings log" => ""
}) %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= content_for(:title) %>
<% @case_log.form.sections.map do |section| %>
<%= section.label %>
<% section.subsections.map do |subsection| %>
<% subsection.applicable_questions(@case_log).each do |question| %>
<%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %>
<% end %>
<% end %>
<% end %>
<% end %>