Sha256: 4279f51d71dfd82b30fe8cc59dcf4fe97b8fbe71455e6c93e85666c0083a3c38

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

<div data-hook="admin_stock_movements_form_fields" class="row">
  <div class="alpha two columns">
    <%= hidden_field_tag :stock_management, true %>
    <%= 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 %>
      <%= f.label :stock_location_id, Spree.t(:stock_location) %>
      <%= collection_select 'stock_movement', 'stock_location_id', @stock_locations, :id, :name,
        {}, class: 'select2 fullwidth' %>
    <% end %>
  </div>

  <div class="five columns omega">
    <%= f.field_container :variant_id do %>
      <%= label_tag 'stock_item[variant_id]', Spree.t(:variant) %>
      <%= collection_select 'stock_item', 'variant_id', @variants, :id, :sku,
        {}, class: 'select2 fullwidth' %>
    <% end %>
  </div>
</div>

<div class="form-buttons filter-actions actions" data-hook="buttons">
  <%= button Spree.t(:add_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>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-2.0.3 app/views/spree/admin/shared/_stock_movement_form.html.erb
spree_backend-2.0.2 app/views/spree/admin/shared/_stock_movement_form.html.erb
spree_backend-2.0.1 app/views/spree/admin/shared/_stock_movement_form.html.erb
spree_backend-2.0.0 app/views/spree/admin/shared/_stock_movement_form.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/shared/_stock_movement_form.html.erb