<% 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) %>

You can review and make changes to this log until <%= @log.form.display_end_date.to_formatted_s(:govuk_date) %>.

<% @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:, questions: total_applicable_questions(subsection, @log, current_user), referrer: "check_answers" } %>
<% end %> <% end %> <% end %>