Sha256: d1e5523d5979452a6ee2aff225af236218fbc3389d016e5744f2eaa00c7fdd90
Contents?: true
Size: 1.75 KB
Versions: 12
Compression:
Stored size: 1.75 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_movement_path %>! </div> <% end %> <%= paginate @stock_movements %>
Version data entries
12 entries across 12 versions & 1 rubygems