diff --git a/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb b/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb index a1651551be8..b9ab905aa66 100644 --- a/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb +++ b/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb @@ -1,7 +1,10 @@
+ <%= + render component("ui/forms/checkbox").new( + form: form_id, + "data-action": "#{stimulus_id}#selectAllRows", + "data-#{stimulus_id}-target": "headerCheckbox", + "aria-label": t('.select_all'), + ) + %> + | ++ <%= t(".product") %> + | ++ <%= t(".quantity") %> + | ++ <%= t(".total") %> + | +
---|---|---|---|
+ <%= + render component("ui/forms/checkbox").new( + name: "selected_variants[]", + form: form_id, + value: item.variant.id, + "data-#{stimulus_id}-target": "checkbox", + ) + %> + | + +
+
+ <% variant = item.variant %>
+ <%= render component("ui/thumbnail").new(
+ src: (variant.images.first || variant.product.gallery.images.first)&.url(:small),
+ alt: variant.name
+ ) %>
+
+
+
+ <%= variant.name %>
+
+ SKU: <%= variant.sku %>
+ <%= variant.options_text.presence&.prepend("- ") %>
+
+ |
+ + + <%= render component("ui/forms/input").new( + value: item.line_item.quantity, + form: form_id, + name: "variants[#{item.variant.id}][quantity]", + type: :number, + step: 1, + min: "1", + max: item.line_item.quantity, + "data-#{stimulus_id}-target": "quantity", + "data-action": "focus->#{stimulus_id}#selectRow", + ) %> + + | ++ <%= item.line_item.display_amount %> + | +