Sha256: b3f332e7664a7662a671bc66d7456857653516b045fd0786080c97251dd98ff6

Contents?: true

Size: 1.78 KB

Versions: 9

Compression:

Stored size: 1.78 KB

Contents

<%= render :partial => 'spree/admin/shared/configuration_menu' %>

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

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location),  icon: 'icon-plus', id: 'admin_new_stock_movement_link' %>
  </li>
  <li>
    <%= link_to_with_icon 'icon-arrow-left', Spree.t(:back_to_stock_locations_list), admin_stock_locations_path, :class => 'button' %>
  </li>
<% 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.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" 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="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/stock_movement')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_stock_location_stock_movement_path(@stock_location) %>!
  </div>
<% end %>

<%= paginate @stock_movements %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.1.11 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.1.10 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.0.13 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.1.9 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.1.8 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.0.12 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.1.7 app/views/spree/admin/stock_movements/index.html.erb
spree_backend-2.0.11 app/views/spree/admin/stock_movements/index.html.erb