List absent products in import preview

This commit is contained in:
Maikel Linke
2025-03-06 09:29:35 +11:00
parent a2e68e1f3c
commit c60718feea
6 changed files with 40 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
%tr
%td
%label
= absent_variant.product_and_full_name
%td
= t(".reset")
= link_to(absent_variant.product_id, edit_admin_product_path(absent_variant.product_id))

View File

@@ -5,4 +5,4 @@
%p= t(".imported_products", count: @count)
%p= t(".reset_products", count: @reset_count)
%p= t(".reset_products", count: @reset_count) if @reset_count.positive?

View File

@@ -6,6 +6,7 @@
%p= t('.catalog_url', count: @items.count, catalog_url: @catalog_url)
%p= t('.enterprise', enterprise_name: @enterprise.name)
%p= t('.absent_products', count: @absent_items.count)
%br
= form_with url: main_app.import_admin_dfc_product_imports_path, html: { "data-controller": "checked" } do |form|
@@ -32,6 +33,7 @@
= link_to(existing_product.id, edit_admin_product_path(existing_product))
- else
= t(".new")
= render partial: "absent_variant", collection: @absent_items
%span{ "data-controller": "checked-feedback", "data-checked-feedback-translation-value": "admin.dfc_product_imports.index.selected" }
= t(".selected", count: @items.count)