% content_for :before_content do %>
<%= govuk_back_link(href: :back) %>
<% end %>
Upload sales logs in bulk (<%= @bulk_upload.year_combo %>)
<%= answers_to_be_deleted_title_text(@bulk_upload) %>
The following cells contain data this is incorrect.
If you upload the logs, these answers will be deleted. You will have to re-enter the data on the site and resolve these errors.
If you do not want these answers to be deleted, correct the data in the CSV and upload the file again.
File: <%= @bulk_upload.filename %>
<% @bulk_upload.bulk_upload_errors.order_by_row.order_by_cell.group_by(&:row).each do |_row, errors_for_row| %>
<% if all_answers_to_be_cleared(errors_for_row).present? %>
<%= render BulkUploadErrorRowComponent.new(bulk_upload_errors: all_answers_to_be_cleared(errors_for_row)) %>
<% end %>
<% end %>
<%= form_with model: @form, scope: :form, url: page_bulk_upload_sales_resume_path(@bulk_upload, "confirm"), method: :patch do |f| %>
<%= f.govuk_submit "Clear this data and upload the logs" %>
<%= govuk_button_link_to "I have fixed these errors and I want to reupload the file", start_bulk_upload_sales_logs_path, secondary: true %>
<% end %>