Sha256: 8879373de79ae7be73be18132bd2097ca27b67c19d41cbf84a73427eccb72511

Contents?: true

Size: 1.65 KB

Versions: 11

Compression:

Stored size: 1.65 KB

Contents

<%= render 'spree/admin/shared/shipping_tabs' %>

<% admin_breadcrumb(Spree.t(:stock_movements_for_stock_location, stock_location_name: @stock_location.name)) %>


<% content_for :page_actions do %>
  <% if can?(:display, Spree::StockLocation) %>
    <li>
      <%= link_to_with_icon 'arrow-left', Spree.t(:back_to_stock_locations_list), admin_stock_locations_path, class: 'button' %>
    </li>
  <% end %>
<% end %>

<% 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(:stock_item) %>
      <th><%= Spree::StockMovement.human_attribute_name(:quantity) %></th>
      <th><%= Spree::StockMovement.human_attribute_name(:action) %></th>
    </tr>
  </thead>
  <tbody>
    <% @stock_movements.each do |stock_movement|%>
      <tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows" class="<%= cycle('odd', 'even')%>">
        <td class="align-center">
          <%= display_variant(stock_movement) %>
        </td>
        <td class="align-center"><%= stock_movement.quantity %></td>
        <td class="align-center"><%= pretty_originator(stock_movement) %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="col-9 no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::StockMovement,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.2.2 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.3.0 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.2.1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.2.0 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/stock_movements/index.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/stock_movements/index.html.erb