Browse Source

apply recommendation for bulk upload resume choice

bulk-upload-resume
Phil Lee 2 years ago
parent
commit
bd93e28778
  1. 8
      app/models/forms/bulk_upload_lettings_resume/fix_choice.rb
  2. 2
      app/views/bulk_upload_lettings_resume/fix_choice.html.erb

8
app/models/forms/bulk_upload_lettings_resume/fix_choice.rb

@ -36,6 +36,14 @@ module Forms
raise "invalid choice"
end
end
def recommendation
if BulkUploadErrorSummaryTableComponent.new(bulk_upload:).errors?
"For this many errors we recommend to fix errors in the CSV and re-upload as you may be able to edit many fields at once in a CSV."
else
"For this many errors we recommend to upload logs and fix errors on site as you can easily see the questions and select the appropriate answer."
end
end
end
end
end

2
app/views/bulk_upload_lettings_resume/fix_choice.html.erb

@ -11,7 +11,7 @@
</div>
<div class="govuk-body">
For this many errors we recommend to fix errors in the CSV and re-upload as you may be able to edit many fields at once in a CSV.
<%= @form.recommendation %>
</div>
<%= govuk_details(summary_text: "How to choose between fixing errors on the CORE site or in the CSV") do %>

Loading…
Cancel
Save