Sha256: fb428419dcd6786dbad3b1a32b1cd6c89eaf98aa4878c9663e7c13b563448573

Contents?: true

Size: 1.75 KB

Versions: 50

Compression:

Stored size: 1.75 KB

Contents

<%= form_tag transfer_stock_admin_stock_locations_path do %>
  <fieldset>
    <legend><%= Spree.t(:move_stock_between_locations)%></legend>
    <div data-hook="admin_stock_movements_form_fields" class="row">
      <div class="col-xs-12 col-md-5">
        <div class="form-group" 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' %>
        </div>
      </div>
      <div class="col-xs-12 col-md-5">
        <div class="form-group" 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' %>
        </div>
      </div>

      <div class="col-xs-12 col-md-5">
        <div class="form-group" 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' %>
        </div>
      </div>

      <div class="col-xs-12 col-md-5">
        <div class="form-group" id="stock_movement_quantity_field">
          <%= label_tag 'quantity', Spree.t(:quantity) %>
          <%= number_field_tag :quantity, 1, class: 'form-control' %>
        </div>
      </div>
    </div>

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.14 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.13 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.12 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.11 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.4.6 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.10 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.9 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.8 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.7 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.6 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.5 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.4 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.3 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.2 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.1 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.0 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb