<%= form_with model: @log, url: send("#{@log.model_name.param_key}_confirm_clear_answer_path", @log), method: "post", local: true do |f| %> <% remove_duplicate_page_errors(@log) %> <%= f.govuk_error_summary %> <%= f.hidden_field :page_id, value: @page.id %>

Make sure these answers are correct:

<% applicable_questions = @questions.reject { |q| q.hidden_in_check_answers?(@log, current_user) } %>
<% applicable_questions.each do |question| %> <%= f.hidden_field question.id, value: @log[question.id] %>
<%= get_question_label(question) %>
<%= simple_format( get_answer_label(question, @log), wrapper_tag: "span", class: "govuk-!-margin-right-4", ) %> <% extra_value = question.get_extra_check_answer_value(@log) %> <% if extra_value && question.answer_label(@log).present? %> <%= simple_format( extra_value, wrapper_tag: "span", class: "govuk-!-font-weight-regular app-!-colour-muted", ) %> <% end %> <% question.get_inferred_answers(@log).each do |inferred_answer| %> <%= inferred_answer %> <% end %>
<% if !question.displayed_as_answered?(@log) || question.subsection.id == "setup" %> <%= govuk_link_to check_errors_answer_text(question, @log), check_errors_answer_link(@log, question, @page, applicable_questions) %> <% else %> <% end %>
<% end %>
<% end %> <%= govuk_button_link_to "Confirm and continue", @original_page_id ? send("#{@log.model_name.param_key}_#{@original_page_id}_path", @log) : send("#{@log.model_name.param_key}_#{@page.id}_path", @log) %>