"There #{is_or_are}#{pluralize(bulk_upload.total_logs_count,'log')} in this bulk upload with #{pluralize(bulk_upload.bulk_upload_errors.count,'error')} that still #{need_or_needs} to be fixed after upload."
"There #{is_or_are}#{pluralize(bulk_upload.total_logs_count,'log')} in this bulk upload with #{pluralize(bulk_upload.bulk_upload_errors.count,'error')} that still #{needs_or_need} to be fixed after upload."
errors.add(field,I18n.t("validations.not_answered",question:"how is person affected by condition or illness"))
errors.add(field,I18n.t("validations.not_answered",question:"how is person affected by condition or illness"),category::not_answered)
end
end
end
defvalidate_lettings_allocation
ifcbl.blank?&&cap.blank?&&chr.blank?
errors.add(:field_116,I18n.t("validations.not_answered",question:"was the letting made under the Choice-Based Lettings (CBL)?"))
errors.add(:field_117,I18n.t("validations.not_answered",question:"was the letting made under the Common Allocation Policy (CAP)?"))
errors.add(:field_118,I18n.t("validations.not_answered",question:"was the letting made under the Common Housing Register (CHR)?"))
errors.add(:field_116,I18n.t("validations.not_answered",question:"was the letting made under the Choice-Based Lettings (CBL)?"),category::not_answered)
errors.add(:field_117,I18n.t("validations.not_answered",question:"was the letting made under the Common Allocation Policy (CAP)?"),category::not_answered)
errors.add(:field_118,I18n.t("validations.not_answered",question:"was the letting made under the Common Housing Register (CHR)?"),category::not_answered)
<span class="govuk-caption-l">Bulk upload for lettings (<%= @bulk_upload.year_combo %>)</span>
<h1 class="govuk-heading-l"><%= @bulk_upload.bulk_upload_errors.uniq(&:field).count == 1 ? "This" : "These" %> <%= pluralize(@bulk_upload.bulk_upload_errors.uniq(&:field).count, "answer") %> will be deleted if you upload the <%= "log".pluralize(@bulk_upload.logs.count) %></h1>
<h1 class="govuk-heading-l"><%= @bulk_upload.bulk_upload_errors.select{|e| e.category != :not_answered}.uniq(&:field).count == 1 ? "This" : "These" %> <%= pluralize(@bulk_upload.bulk_upload_errors.select{|e| e.category != :not_answered}.uniq(&: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>
@ -14,7 +18,7 @@
<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| %>