Sha256: cb0e497f5bd2497638fc99d520bc7510f728a99c35c75e33d4dfa5e6665072ac

Contents?: true

Size: 1.77 KB

Versions: 47

Compression:

Stored size: 1.77 KB

Contents

<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(t('spree.admin.tab.shipping')) %>
<% if can?(:display, Spree::StockLocation) %>
  <% admin_breadcrumb(link_to plural_resource_name(Spree::StockLocation), spree.admin_stock_locations_path) %>
<% else %>
  <% admin_breadcrumb(plural_resource_name(Spree::StockLocation)) %>
<% end %>
<% if can?(:update, @stock_location) %>
  <% admin_breadcrumb(link_to(admin_stock_location_display_name(@stock_location), spree.edit_admin_stock_location_path(@stock_location.id))) %>
<% else %>
  <% admin_breadcrumb(admin_stock_location_display_name(@stock_location)) %>
<% end %>
<% admin_breadcrumb(plural_resource_name(Spree::StockMovement)) %>

<% if @stock_movements.any? %>
<table class="index" id='listing_stock_movements'>
  <colgroup>
    <col style="width: 35%">
    <col style="width: 20%">
    <col style="width: 45%">
  </colgroup>
  <thead>
    <tr data-hook="admin_stock_movements_index_headers">
      <th><%= Spree::StockMovement.human_attribute_name(:variant) %>
      <th><%= Spree::StockMovement.human_attribute_name(:quantity) %></th>
      <th><%= Spree::StockMovement.human_attribute_name(:originated_by) %></th>
    </tr>
  </thead>
  <tbody>
    <% @stock_movements.each do |stock_movement|%>
      <tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
        <td>
          <%= display_variant(stock_movement) %>
        </td>
        <td><%= stock_movement.quantity %></td>
        <td><%= pretty_originator(stock_movement) %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::StockMovement %>
  </div>
<% end %>

<%= paginate @stock_movements, theme: "solidus_admin" %>

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.10.3 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.10.2 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.6 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.8.6 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.10.1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.5 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.10.0 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.4 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.6.6 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.7.4 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.8.5 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.3 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.2 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.7.3 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.6.5 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.0 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/stock_movements/index.html.erb