<%= link_to mini_image(item.variant), edit_admin_product_path(item.variant.product) %>
|
<%= link_to item.variant.product.name, edit_admin_product_path(item.variant.product) %>
<%= "(#{item.variant.options_text})" if item.variant.options_text.present? %>
<% if item.variant.sku.present? %>
<%= Spree.t(:sku) %>: <%= item.variant.sku %>
<% end %>
|
<%= item.line_item.single_money.to_html %> |
<% item.states.each do |state,count| %>
<%= count %> x <%= Spree.t(state).downcase %>
<% end %>
|
<% unless shipment.shipped? %>
<%= number_field_tag :quantity, item.quantity, min: 0, class: "line_item_quantity form-control", size: 5 %>
|
<% end %>
<%= line_item_shipment_price(item.line_item, item.quantity) %>
|
<% if((!shipment.shipped?) && can?(:update, item.line_item)) %>
<%= link_to_with_icon 'edit.svg', Spree.t('actions.edit'), "#", class: 'edit-item btn btn-outline-secondary btn-sm', title: Spree.t('actions.edit'), no_text: true %>
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-item btn btn-outline-secondary btn-sm', data: { action: 'cancel' }, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
<%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-item btn btn-success btn-sm', data: {'shipment-number' => shipment.number, 'variant-id' => item.variant.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none', no_text: true %>
<%= link_to_with_icon 'split.svg', Spree.t('split'), "#", class: 'split-item btn btn-outline-secondary btn-sm', data: {action: 'split', 'variant-id' => item.variant.id}, title: Spree.t('split'), no_text: true %>
<%= link_to_with_icon 'delete.svg', Spree.t('delete'), "#", class: 'delete-item btn btn-danger btn-sm', data: { 'shipment-number' => shipment.number, 'variant-id' => item.variant.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %>
<% end %>
|
<% end %>