Sha256: 6f9c3c74d09540c9d16d46aa3968e507ef971a7d52cc0a985ce135097a77e9e6
Contents?: true
Size: 1.45 KB
Versions: 41
Compression:
Stored size: 1.45 KB
Contents
<%= form_for [:admin, Spree::StockMovement.new], url: admin_stock_items_path do |f| %> <fieldset> <legend align="center"><%= Spree.t(:add_stock_management) %></legend> <div data-hook="admin_stock_movements_form_fields" class="row"> <div class="alpha two columns"> <%= f.field_container :quantity do %> <%= f.label :quantity, Spree.t(:quantity) %> <%= f.number_field :quantity, class: 'fullwidth', value: 1 %> <% end %> </div> <div class="five columns"> <%= 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 fullwidth' %> <% end %> </div> <div class="five columns omega"> <%= 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 fullwidth' %> <% end %> </div> </div> <div class="form-buttons filter-actions actions" data-hook="buttons"> <%= button Spree.t(:add_stock), 'plus' %> <span class="or"><%= Spree.t(:or) %></span> <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %> </div> </fieldset> <% end %>
Version data entries
41 entries across 41 versions & 1 rubygems
Version | Path |
---|---|
spree_backend-2.2.2 | app/views/spree/admin/products/_add_stock_form.html.erb |