Sha256: fc49c6dd0fb57963fcb9a3675a6b07cac4b3a1dc431d5de23d82215c76a5fb81

Contents?: true

Size: 1.99 KB

Versions: 52

Compression:

Stored size: 1.99 KB

Contents

<fieldset>
  <legend align="center">{{ t "select_stock" }}</legend>
    <table class="stock-levels" data-hook="stock-levels">
      <colgroup>
        <col style="width: 30%;" />
        <col style="width: 40%;" />
        <col style="width: 20%;" />
        <col style="width: 10%;" />
      </colgroup>
      <thead>
        <th>{{ t "location" }}</th>
        <th>{{ t "count_on_hand" }}</th>
        <th>{{ t "quantity" }}</th>
        <th class="actions"></th>
      </thead>
      <tbody>
        {{#each variant.stock_items}}
          <tr>
            <td>{{this.stock_location_name}}</td>
            {{#unless ../variant.track_inventory}}
              <td>
                It doesn't track inventory
              </td>
              <td>
                <input class="quantity" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
              </td>
              <td class="actions">
                <button class="add_variant no-text fa fa-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="{{ t "add" }}" data-action="add"></button>
              </td>
            {{else}}
              {{#if this.available}}
                <td>
                  {{this.count_on_hand}}
                  {{#if this.backorderable}} ({{ t "backorders_allowed" }}) {{/if}}
                </td>
                <td>
                  <input class="quantity" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
                </td>
                <td class="actions">
                  <button class="add_variant no-text fa fa-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="{{ t "add" }}" data-action="add"></button>
                </td>
              {{else}}
              <td>{{ t "out_of_stock" }}</td>
                <td>0</td>
              {{/if}}
            {{/unless}}
          </tr>
        {{/each}}
      </tbody>
    </table>
</fieldset>

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.4.1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.2.2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.1.1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.0.3 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-1.4.2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-1.3.2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-1.2.3 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-1.1.4 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.4.0 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.4.0.rc1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.4.0.beta1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.0 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.0.rc3 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.0.rc2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.0.rc1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.3.0.beta1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-2.0.2 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
solidus_backend-1.4.1 app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs