Sha256: a35f2faef2e089d8790fcd8d215b70bc08f2b2ac6801a8feb0ed737bc38dbd90

Contents?: true

Size: 1.91 KB

Versions: 8

Compression:

Stored size: 1.91 KB

Contents

<script type='text/template' id='variant_line_items_autocomplete_stock_template'>
  
  <label><%= Spree.t(:select_stock) %></label>

  <table class="stock-levels table table-bordered" data-hook="stock-levels">
    <thead>
      <th><%= Spree.t(:name) %></th>
      <th class="text-center"><%= Spree.t(:count_on_hand) %></th>
      <th class="text-center"><%= Spree.t(:quantity) %></th>
      <th></th>
    </thead>
    <tbody>
      <tr>
        <td>{{variant.name}}</td>
        {{#if variant.track_inventory}}
          {{#if variant.total_on_hand}}
            <td class="text-center">{{variant.total_on_hand}}</td>
            <td class="text-center">
              <input class="quantity form-control" id="variant_quantity" data-variant-id="{{variant.id}}" type="number" min="1" value="1">
            </td>
            <td class="actions actions-1 text-center">
              <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
                <span class="icon icon-add"></span>
                </button>
            </td>
          {{else}}
            <td class="text-center"><%= Spree.t(:out_of_stock) %></td>
            <td class="text-center">0</td>
            <td></td>
            <td></td>
          {{/if}}
        {{else}}
          <td class="text-center"><%= Spree.t(:doesnt_track_inventory) %></td>
          <td class="text-center">
            <input class="quantity form-control" id="variant_quantity" data-variant-id="{{variant.id}}" type="number" min="1" value="1">
          </td>
          <td class="actions actions-1 text-center">
            <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
              <span class="icon icon-add"></span>
            </button>
          </td>
        {{/if}}
      </tr>
    </tbody>
  </table>
</script>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_backend-3.0.4 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.3 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.2 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.1 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.0 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb