Sha256: a0d2308155e1bffdcc1f7745f9aaefac40a8d4913bc8a7c38492d8f7b40411fc

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

<% shipment_manifest.each do |item| %>
  <tr class="stock-item" data-item-quantity="<%= item.quantity %>">
    <td class="item-image">
      <%= mini_image(item.variant) %>
    </td>
    <td class="item-name">
      <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
      <% if item.variant.sku.present? %>
        <strong><%= Spree.t(:sku) %>:</strong> <%= item.variant.sku %>
      <% end %>
    </td>
    <td class="item-price align-center"><%= item.line_item.single_money.to_html %></td>
    <td class="item-qty-show align-center">
        <% item.states.each do |state,count| %>
          <%= count %> x <%= Spree.t(state).downcase %>
        <% end %>
    </td>
    <td class="item-qty-edit hidden">
      <%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
    </td>
    <td class="item-total align-center"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>

    <td class="cart-item-delete actions" data-hook="cart_item_delete">
      <% if can? :update, item %>
        <%= link_to '', '#', :class => 'save-item fa fa-check 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 => 'split-item icon_link 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('delete') %>
      <% end %>
    </td>
  </tr>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_backend-1.0.0.pre2 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/orders/_shipment_manifest.html.erb