Sha256: e361c288f47d102d3b146cc2c1efdedec22d9d420a2b9e12cd1095b52cf5b5f1

Contents?: true

Size: 1.61 KB

Versions: 88

Compression:

Stored size: 1.61 KB

Contents

<% shipment_manifest.each do |item| %>
  <tr class="stock-item"
      data-item-quantity="<%= item.quantity %>"
      data-variant-id="<%= item.variant.id %>"
      >
    <td class="item-image align-center">
      <%= render 'spree/admin/shared/image',
        image: (item.variant.gallery.images.first || item.variant.product.gallery.images.first),
        size: :mini %>
    </td>
    <td class="item-name">
      <%= link_to item.variant.product.name, edit_admin_product_path(item.variant.product) %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
      <% if item.variant.sku.present? %>
        <strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %>
      <% end %>
    </td>
    <td class="item-price"><%= item.line_item.single_money.to_html %></td>
    <td class="item-qty-show">
        <% item.states.each do |state,count| %>
          <%= count %> x <%= t(state, scope: 'spree.inventory_states') %>
        <% end %>
    </td>
    <td class="item-total"><%= 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 %>
        <%= button_tag '', class: 'split-item icon_link fa fa-arrows-h no-text with-tip', data: { action: 'edit', 'variant-id' => item.variant.id }, title: t('spree.actions.split'), type: :button %>
        <%= button_tag '', class: 'delete-item fa fa-trash no-text with-tip', data: { action: 'remove', 'variant-id' => item.variant.id }, title: t('spree.actions.delete'), type: :button %>
      <% end %>
    </td>
  </tr>
<% end %>

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
solidus_backend-2.9.5 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.10.0 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.4 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.5 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.3 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.2 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.1 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.0 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.4 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.3 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.2 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.1 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend-2.8.0 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/orders/_shipment_manifest.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/orders/_shipment_manifest.html.erb