You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.6 KiB
34 lines
1.6 KiB
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds"> |
|
<span class="govuk-caption-l">Bulk upload for lettings (<%= @bulk_upload.year_combo %>)</span> |
|
<h1 class="govuk-heading-l">Fix <%= pluralize(@bulk_upload.bulk_upload_errors.count, "error") %> and upload file again</h1> |
|
|
|
<p class="govuk-body-l"> |
|
We could not create logs from your bulk upload. Below is a list of everything that you need to fix your spreadsheet. You can download the <%= govuk_link_to "specification", Forms::BulkUploadLettings::PrepareYourFile.new(year: @bulk_upload.year).specification_path, target: "_blank" %> to help you fix the cells in your CSV file. |
|
</p> |
|
|
|
<p class="govuk-body-l"> |
|
Filename: <%= @bulk_upload.filename %> |
|
</p> |
|
</div> |
|
</div> |
|
|
|
<div class="govuk-grid-row"> |
|
<%= govuk_tabs(title: "Error reports") do |c| %> |
|
<% c.with_tab(label: "Summary") do %> |
|
<p class="govuk-body"> |
|
This summary shows questions that have at least <%= BulkUploadErrorSummaryTableComponent::DISPLAY_THRESHOLD %> errors or more. See full error report for more details. |
|
</p> |
|
|
|
<%= render BulkUploadErrorSummaryTableComponent.new(bulk_upload: @bulk_upload) %> |
|
<% end %> |
|
|
|
<% c.with_tab(label: "Full error report") do %> |
|
<% @bulk_upload.bulk_upload_errors.group_by(&:row).each do |_row, errors_for_row| %> |
|
<%= render BulkUploadErrorRowComponent.new(bulk_upload_errors: errors_for_row) %> |
|
<% end %> |
|
<% end %> |
|
<% end %> |
|
</div> |
|
|
|
<%= govuk_button_link_to "Upload your file again", start_bulk_upload_lettings_logs_path %>
|
|
|