% if BulkUploadErrorSummaryTableComponent.new(bulk_upload: @bulk_upload).errors? %>
<% content_for :before_content do %>
<%= govuk_back_link(text: "Back", href: summary_bulk_upload_lettings_result_path(@bulk_upload)) %>
<% end %>
<% end %>
Bulk upload for lettings (<%= @bulk_upload.year_combo %>)
We found <%= pluralize(@bulk_upload.bulk_upload_errors.count, "error") %> in your file
Here’s a list of everything that you need to fix your spreadsheet. You can download the specification to help you fix the cells in your CSV file.
<%= @bulk_upload.filename %>
<% @bulk_upload.bulk_upload_errors.group_by(&:row).each do |_row, errors_for_row| %>
<%= render BulkUploadErrorRowComponent.new(bulk_upload_errors: errors_for_row) %>
<% end %>
<%= govuk_button_link_to "Upload your file again", start_bulk_upload_lettings_logs_path %>