Sha256: 5bf01ee5852b253fcbb94cd600cf5782c465abc04a10205425160159a1ab10a9

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

<div class="panel-heading">
  <h1 class="panel-title">
    <%= Spree.t(:add_stock_management) %>
  </h1>
</div>
<div class="panel-body">
  <%= form_for [:admin, Spree::StockMovement.new], url: admin_stock_items_path do |f| %>
    <div data-hook="admin_stock_movements_form_fields" class="row">
      <div class="col-md-2">
        <div class="form-group">
          <%= f.field_container :quantity do %>
            <%= f.label :quantity, Spree.t(:quantity) %>
            <%= f.number_field :quantity, class: 'form-control', value: 1 %>
          <% end %>
        </div>
      </div>
      <div class="col-md-5">
        <div class="form-group">
          <%= f.field_container :stock_location do %>
            <%= label_tag :stock_location_id, Spree.t(:stock_location) %>
            <%= select_tag 'stock_location_id', options_from_collection_for_select(@stock_locations, :id, :name),
              class: 'select2' %>
          <% end %>
        </div>
      </div>

      <div class="col-md-5">
        <div class="form-group">
          <%= f.field_container :variant_id do %>
            <%= label_tag 'variant_id', Spree.t(:variant) %>
            <%= select_tag 'variant_id', options_from_collection_for_select(@variants, :id, :sku_and_options_text),
              class: 'select2' %>
          <% end %>
        </div>
      </div>
    </div>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-3.0.0 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/products/_add_stock_form.html.erb