Browse Source

feat: formatting improvements

pull/2142/head
natdeanlewissoftwire 2 years ago
parent
commit
c1c589289a
  1. 2
      app/views/bulk_upload_lettings_results/deletion_report.html.erb
  2. 5
      app/views/bulk_upload_lettings_resume/confirm.html.erb

2
app/views/bulk_upload_lettings_results/deletion_report.html.erb

@ -1,7 +1,7 @@
<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"><%= @bulk_upload.bulk_upload_errors.count == 1 ? "This" : "These" %> <%= pluralize(@bulk_upload.bulk_upload_errors.count, "answer") %> will be deleted if you upload the logs</h1>
<h1 class="govuk-heading-l"><%= @bulk_upload.bulk_upload_errors.uniq { |e| e.field }.count == 1 ? "This" : "These" %> <%= pluralize(@bulk_upload.bulk_upload_errors.uniq { |e| e.field }.count, "answer") %> will be deleted if you upload the <%= "log".pluralize(@bulk_upload.logs.count) %></h1>
<p>The following cells contain data this is incorrect.</p>
<p>If you upload the logs, these answers will be deleted. You will have to re-enter the data on the site and resolve these errors.</p>

5
app/views/bulk_upload_lettings_resume/confirm.html.erb

@ -13,7 +13,10 @@
</p>
<%= govuk_warning_text text: deleted_errors_warning_text(@bulk_upload) %>
<%= govuk_warning_text do %>
<%= deleted_errors_warning_text(@bulk_upload) %>
<%= govuk_link_to "See which answers will be deleted", deletion_report_bulk_upload_lettings_result_path %>
<% end %>
<%= form_with model: @form, scope: :form, url: page_bulk_upload_lettings_resume_path(@bulk_upload, page: "confirm"), method: :patch do |f| %>
<%= f.govuk_submit "Confirm" %>

Loading…
Cancel
Save