Sha256: de2ecacd62334500c2b9bd1ba70bb44f10119dd0f075f17ce730a74e94e01d66

Contents?: true

Size: 1.56 KB

Versions: 26

Compression:

Stored size: 1.56 KB

Contents

<div class="card-header">
  <h1 class="card-title mb-0 h5">
    <%= Spree.t(:add_stock) %>
  </h1>
</div>
<% content_for :page_actions do %>
  <%= product_preview_link(@product) %>
<% end %>
<div class="card-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-12 col-lg-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-12 col-lg-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-12 col-lg-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), 'add.svg' %>
    </div>
  <% end %>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.3 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.6 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.2 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.4.1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.4.0 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.0 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.0.rc3 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.0.rc2 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.3.0.rc1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.5 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.4 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.3.1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.3 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.2 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.1 app/views/spree/admin/products/_add_stock_form.html.erb
spree_backend-4.2.0 app/views/spree/admin/products/_add_stock_form.html.erb