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.
35 lines
1.5 KiB
35 lines
1.5 KiB
<% content_for :before_content do %> |
|
<%= govuk_back_link(href: :back) %> |
|
<% end %> |
|
|
|
<%= render partial: "bulk_upload_shared/moved_user_banner" %> |
|
|
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds"> |
|
<span class="govuk-caption-l">Upload lettings logs in bulk (<%= @bulk_upload.year_combo %>)</span> |
|
<h1 class="govuk-heading-l">We found <%= pluralize(@bulk_upload.bulk_upload_errors.count, "error") %> in your file</h1> |
|
|
|
<div class="govuk-body"> |
|
Here’s 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. |
|
</div> |
|
|
|
<p class="govuk-!-font-size-19 govuk-!-margin-bottom-2"><strong>File name: </strong><%= @bulk_upload.filename %></p> |
|
|
|
<% if current_user.support? %> |
|
<div class="govuk-!-margin-bottom-7"> |
|
<%= govuk_link_to "Download file", download_lettings_bulk_upload_path(@bulk_upload) %> |
|
</div> |
|
<% end %> |
|
|
|
</div> |
|
</div> |
|
|
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-full"> |
|
<% @bulk_upload.bulk_upload_errors.order_by_row.order_by_cell.group_by(&:row).each do |_row, errors_for_row| %> |
|
<%= render BulkUploadErrorRowComponent.new(bulk_upload_errors: errors_for_row) %> |
|
<% end %> |
|
</div> |
|
</div> |
|
|
|
<%= govuk_button_link_to "Upload your file again", start_bulk_upload_lettings_logs_path(organisation_id: @bulk_upload.organisation_id) %>
|
|
|