<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:new_stock_transfer) %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path, :icon => 'arrow-left' %>
  • <% 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: 'fullwidth' %>
    <%= label_tag :transfer_source_location_id, Spree.t(:source) %> <%= select_tag :transfer_source_location_id, {}, class: 'select2 fullwidth' %>
    <%= label_tag :transfer_destination_location_id, Spree.t(:destination) %> <%= select_tag :transfer_destination_location_id, {}, class: 'select2 fullwidth' %>
    <%= Spree.t(:add_variant) %>
    <%= label_tag 'variant_id', Spree.t(:variant) %> <%= select_tag 'transfer_variant', {}, class: 'fullwidth' %>
    <%= label_tag 'quantity', Spree.t(:quantity) %> <%= number_field_tag 'transfer_variant_quantity', 1, class: 'fullwidth', min: 0 %>
    <%= button Spree.t(:add), 'plus button transfer_add_variant' %>
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/stock_transfer')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_tax_rate_path %>!
    <%= button Spree.t(:transfer_stock), 'plus transfer_transfer' %>
    <% end %>