<%= mini_image(item.variant) %> |
<%= item.variant.product.name %> <%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
<% if item.part && item.line_item %>
<%= Spree.t(:part_of_bundle, sku: item.product.sku) %>
<% end %>
|
<% if item.part %>
---
<% else %>
<%= item.line_item.single_money.to_html if item.line_item %>
<% end %>
|
<% item.states.each do |state,count| %>
<%= count %> x <%= state.humanize.downcase %>
<% end %>
|
<% unless shipment.shipped? %>
<%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
|
<% end %>
<% if item.part %>
---
<% else %>
<%= line_item_shipment_price(item.line_item, item.quantity) if item.line_item %>
<% end %>
|
<% if !shipment.shipped? && !item.part %>
<% if can? :update, item %>
<%= link_to '', '#', :class => 'save-item fa fa-ok no-text with-tip', :data => {'shipment-number' => shipment.number, 'variant-id' => item.variant.id, :action => 'save'}, :title => Spree.t('actions.save'), :style => 'display: none' %>
<%= link_to '', '#', :class => 'cancel-item fa fa-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel'), :style => 'display: none' %>
<%= link_to '', '#', :class => 'edit-item fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
<%= link_to '', '#', :class => 'split-item fa fa-arrows-h no-text with-tip', :data => {:action => 'split', 'variant-id' => item.variant.id}, :title => Spree.t('split') %>
<%= link_to '', '#', :class => 'delete-item fa fa-trash no-text with-tip', :data => {'shipment-number' => shipment.number, 'variant-id' => item.variant.id, :action => 'remove'}, :title => Spree.t('actions.delete') %>
<% end %>
<% end %>
|
<% end %>