Sha256: 56ffeb1c174d68ebd22aa5cb6a63327e23bc3e357a5a6dfddd1fbb78f7b01753

Contents?: true

Size: 1.8 KB

Versions: 30

Compression:

Stored size: 1.8 KB

Contents

<%= form_tag transfer_stock_admin_stock_locations_path do %>
  <fieldset>
    <legend align="center"><%= Spree.t(:move_stock_between_locations)%></legend>
    <div data-hook="admin_stock_movements_form_fields" class="row">
      <div class="five columns">
        <div class="field" id="stock_movement_transfer_from_field">
          <%= label_tag :stock_location_from_id, Spree.t(:transfer_from_location) %>
          <%= select_tag :stock_location_from_id, options_from_collection_for_select(@stock_locations, :id, :name), class: 'select2 fullwidth' %>
        </div>
      </div>
      <div class="five columns">
        <div class="field" id="stock_movement_transfer_to_field">
          <%= label_tag :stock_location_to_id, Spree.t(:transfer_to_location) %>
          <%= select_tag :stock_location_to_id, options_from_collection_for_select(@stock_locations, :id, :name), class: 'select2 fullwidth' %>
        </div>
      </div>

      <div class="five columns">
        <div class="field" id="stock_movement_variant_id_field">
          <%= label_tag 'variant_id', Spree.t(:variant) %>
          <%= select_tag :variant_id, options_from_collection_for_select(@variants, :id, :name_and_sku), class: 'select2 fullwidth' %>
        </div>
      </div>

      <div class="five columns">
        <div class="field" id="stock_movement_quantity_field">
          <%= label_tag 'quantity', Spree.t(:quantity) %>
          <%= number_field_tag :quantity, 1, class: 'fullwidth' %>
        </div>
      </div>
    </div>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button Spree.t(:transfer_stock), 'icon-plus' %>
      <span class="or"><%= Spree.t(:or) %></span>
      <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
    </div>
  </fieldset>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.11 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.10 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.13 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.9 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.8 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.12 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.7 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.11 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.10 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.2.1 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.6 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.2.0 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.5 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.9 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.4 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.8 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.3 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.0.7 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-2.1.2 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb