Sha256: 4c1e0ebf5c007e17356e1787c75acdc4498a4d295c78bc4c38e4bf568698f4d5

Contents?: true

Size: 1.68 KB

Versions: 8

Compression:

Stored size: 1.68 KB

Contents

<% content_for :page_title do %>
  <%= link_to Spree.t(:stock_locations), spree.admin_stock_locations_path %> /
  <%= Spree.t(:stock_movements_for_stock_location, stock_location_name: @stock_location.name) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), icon: 'add.svg', class: 'btn-success', id: 'admin_new_stock_movement_link' %>
<% end %>

<% if @stock_movements.any? %>
<div class="table-responsive border rounded bg-white">
  <table class="table" id='listing_stock_movements'>
    <colgroup>
      <col style="width: 35%">
      <col style="width: 20%">
      <col style="width: 45%">
    </colgroup>
    <thead class="text-muted">
      <tr data-hook="admin_stock_movements_index_headers">
        <th><%= Spree.t(:variant) %>
        <th><%= Spree.t(:quantity) %></th>
        <th><%= Spree.t(: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">
          <td>
            <%= display_variant(stock_movement) %>
          </td>
          <td><%= stock_movement.quantity %></td>
          <td><%= pretty_originator(stock_movement) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
<% else %>
  <div class="text-center no-objects-found m-5">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockMovement)) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_stock_location_stock_movement_path(@stock_location) %>!
  </div>
<% end %>

<%= paginate @stock_movements, theme: 'admin-twitter-bootstrap-4' %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_backend-4.7.2 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.6.2 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.7.1 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.7.0 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.6.1 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.6.0 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.5.1 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-4.5.0 app/views/spree/admin/stock_movements/index.html.erb