<% content_for :page_title do %> <%= link_to Spree.t(:stock_transfers), spree.admin_stock_transfers_url %> / <%= Spree.t(:new_stock_transfer) %> <% end %> <%= form_tag admin_stock_transfers_path, method: :post do %>

<%= Spree.t(:transfer_stock) %>

<%= label_tag 'reference', raw("#{Spree.t(:reference)} (#{Spree.t(:optional)})") %> <%= text_field_tag :reference, '', class: 'form-control' %>
<%= label_tag :transfer_source_location_id, Spree.t(:source) %> <%= select_tag :transfer_source_location_id, {}, class: 'select2' %>
<%= label_tag :transfer_destination_location_id, Spree.t(:destination) %> <%= select_tag :transfer_destination_location_id, {}, class: 'select2' %>

<%= Spree.t(:add_variant) %>

<%= label_tag 'variant_id', Spree.t(:variant) %>
<%= hidden_field_tag 'transfer_variant', {}, { class: 'w-100'} %>
<%= label_tag :transfer_variant_quantity, Spree.t(:quantity) %>
<%= number_field_tag :transfer_variant_quantity, 1, class: 'form-control', min: 1 %> <%= button Spree.t(:add), 'plus', 'submit', class: "transfer_add_variant" %>
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/variant')) %>.
<%= button Spree.t(:transfer_stock), 'plus transfer_transfer' %>
<% end %>