Sha256: 1a470c64fb00bd818a673a431cb651aa5c340777e8caee31082b1a3e97cf3e8a

Contents?: true

Size: 1.59 KB

Versions: 14

Compression:

Stored size: 1.59 KB

Contents

<% content_for :page_title do %>
  <%= 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: 'plus', id: 'admin_new_stock_movement_link' %>
  <%= link_to_with_icon 'arrow-left', Spree.t(:back_to_resource_list, resource: Spree::StockLocation.model_name.human), admin_stock_locations_path, class: 'btn btn-default' %>
<% end %>

<% if @stock_movements.any? %>
<table class="table" 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.t(:stock_item) %>
      <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>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= 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 %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.8 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.7 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.6 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.5 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.4 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.3 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.2 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.1 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.0 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/stock_movements/index.html.erb