<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t('stock_transfers') %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t('new_stock_transfer'), new_admin_stock_transfer_path, { :icon => 'icon-forward' } %>
  • <% end %>
    <%= Spree.t('search') %> <%= search_form_for @q, :url => admin_stock_transfers_path do |f| %>
    <%= f.label :reference_cont %> <%= f.text_field :reference_cont, class: 'fullwidth' %>
    <%= f.label :source_location, Spree.t('source') %> <%= f.select :source_location_id_eq, options_from_collection_for_select(@stock_locations, :id, :name, @q.source_location_id_eq), { include_blank: true }, class: 'select2 fullwidth' %>
    <%= f.label :destination_location, Spree.t('destination') %> <%= f.select :destination_location_id_eq, options_from_collection_for_select(@stock_locations, :id, :name, @q.destination_location_id_eq), { include_blank: true }, class: 'select2 fullwidth' %>
    <%= button Spree.t('filter_results'), 'icon-search' %>
    <% end %>
    <% if !@stock_transfers.empty? %> <% @stock_transfers.each do |stock_transfer| %> <% end %>
    <%= Spree.t('created_at') %> <%= Spree.t('reference') %> <%= Spree.t('source') %> <%= Spree.t('destination') %>
    <%= stock_transfer.created_at %> <%= stock_transfer.reference %> <%= stock_transfer.source_location.try(:name) %> <%= stock_transfer.destination_location.try(:name) %> <%= link_to '', admin_stock_transfer_path(stock_transfer), title: 'view', class: 'view icon_link with-tip icon-eye-open no-text', data: {action: 'view'} %>
    <% else %>
    <%= Spree.t('empty') %>
    <% end %> <%= paginate @stock_transfers %>