From e36e32caeda1bc51804deb253c5fa9e88d4c969b Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:52:00 +0100 Subject: [PATCH] Add download file link to error reports --- .../bulk_upload_lettings_results/show.html.erb | 9 ++++++++- .../bulk_upload_lettings_results/summary.html.erb | 13 +++++++++---- app/views/bulk_upload_sales_results/show.html.erb | 9 ++++++++- .../bulk_upload_sales_results/summary.html.erb | 13 +++++++++---- 4 files changed, 34 insertions(+), 10 deletions(-) diff --git a/app/views/bulk_upload_lettings_results/show.html.erb b/app/views/bulk_upload_lettings_results/show.html.erb index 15c486b91..fd49c8f3e 100644 --- a/app/views/bulk_upload_lettings_results/show.html.erb +++ b/app/views/bulk_upload_lettings_results/show.html.erb @@ -13,7 +13,14 @@ 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. -
File name: <%= @bulk_upload.filename %>
+ + <% if current_user.support? %> ++
We could not create logs from your bulk upload because of the following errors. 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.
-- File: <%= @bulk_upload.filename %> -
+File name: <%= @bulk_upload.filename %>
+ + <% if current_user.support? %> +File name: <%= @bulk_upload.filename %>
+ + <% if current_user.support? %> ++
We could not create logs from your bulk upload because of the following errors. Download the <%= govuk_link_to "specification", Forms::BulkUploadSales::PrepareYourFile.new(year: @bulk_upload.year).specification_path, target: "_blank" %> to help you fix the cells in your CSV file.
-- File: <%= @bulk_upload.filename %> -
+File name: <%= @bulk_upload.filename %>
+ + <% if current_user.support? %> +