Sha256: f785dfdcf5ef21897b68dc17de811e6c60c3bba7c91dd4625e01a5e98738a73c

Contents?: true

Size: 1.91 KB

Versions: 26

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

26 entries across 26 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.13 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.12 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.11 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.10 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.9 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.8 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.7 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.6 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.5 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.4 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.3 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.2 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.10 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.1 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.0 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.0.9 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb