<%= 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 'pencil', 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', Spree.t('actions.cancel'), "#", class: 'cancel-item btn btn-primary btn-sm', data: { action: 'cancel' }, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
<%= link_to_with_icon 'ok', 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', Spree.t('split'), "#", class: 'split-item btn btn-primary btn-sm', data: {action: 'split', 'variant-id' => item.variant.id}, title: Spree.t('split'), no_text: true %>
<%= link_to_with_icon 'delete', 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 %>