Browse Source

Add download file link to error reports

pull/2653/head
Manny Dinssa 2 years ago
parent
commit
e36e32caed
  1. 9
      app/views/bulk_upload_lettings_results/show.html.erb
  2. 13
      app/views/bulk_upload_lettings_results/summary.html.erb
  3. 9
      app/views/bulk_upload_sales_results/show.html.erb
  4. 13
      app/views/bulk_upload_sales_results/summary.html.erb

9
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.
</div>
<h2 class="govuk-heading-m">File: <%= @bulk_upload.filename %></h2>
<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>

13
app/views/bulk_upload_lettings_results/summary.html.erb

@ -5,13 +5,18 @@
<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">
<p class="govuk-body">
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.
</p>
<p class="govuk-body-l">
File: <%= @bulk_upload.filename %>
</p>
<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>

9
app/views/bulk_upload_sales_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::BulkUploadSales::PrepareYourFile.new(year: @bulk_upload.year).specification_path, target: "_blank" %> to help you fix the cells in your CSV file.
</div>
<h2 class="govuk-heading-m">File: <%= @bulk_upload.filename %></h2>
<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_sales_bulk_upload_path(@bulk_upload) %>
</div>
<% end %>
</div>
</div>

13
app/views/bulk_upload_sales_results/summary.html.erb

@ -5,13 +5,18 @@
<span class="govuk-caption-l">Bulk upload for sales (<%= @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">
<p class="govuk-body">
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.
</p>
<p class="govuk-body-l">
File: <%= @bulk_upload.filename %>
</p>
<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_sales_bulk_upload_path(@bulk_upload) %>
</div>
<% end %>
</div>
</div>

Loading…
Cancel
Save