%= turbo_frame_tag "case_log_form", target: "_top" do %>
Check the answers you gave for household characteristics
You answered <%= get_answered_questions_total(subsection_pages, case_log) %> of <%= subsection_pages.count %> questions
<%= create_next_missing_question_link(case_log_id, subsection_pages, case_log) %>
<% subsection_pages.each do |page, page_info| %>
-
<%= page_info["check_answer_label"].to_s %>
-
-
<%= case_log[page] %>
-
<%= create_update_answer_link(case_log[page], case_log_id, page)%>
<% end %>
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
<%= f.govuk_submit "Save and continue" %>
<% end %>
<% end %>