<% content_for :page_title do %> <%= plural_resource_name(Spree::StockTransfer) %> (<%= @stock_transfer.number %>) <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'add', :class => 'btn-success' } %> <% end if can? :create, Spree::StockTransfer %>
<%= Spree.t(:stock_transfer) %> <% if @stock_transfer.reference.present? %> <% end %>
<%= Spree.t(:created_at) %> <%= @stock_transfer.created_at %>
<%= Spree.t(:reference) %> <%= @stock_transfer.reference %>
<% if @stock_transfer.source_movements.present? %>
<%= Spree.t(:source) %> / <%= @stock_transfer.source_location.name %> <%= render :partial => 'stock_movements', :object => @stock_transfer.source_movements %>
<% end %> <% if @stock_transfer.destination_movements.present? %>
<%= Spree.t(:destination) %> / <%= @stock_transfer.destination_location.name %> <%= render :partial => 'stock_movements', :object => @stock_transfer.destination_movements %>
<% end %>