Sha256: ac42a4f1ac991994865794eda9acd69565d3e7374877524dc2f539328741fcdc
Contents?: true
Size: 1.56 KB
Versions: 11
Compression:
Stored size: 1.56 KB
Contents
<script type='text/template' id='variant_autocomplete_stock_template'> <fieldset> <legend align="center"><%= Spree.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><%= Spree.t(:location) %></th> <th><%= Spree.t(:count_on_hand) %></th> <th><%= Spree.t(:quantity) %></th> <th class="actions"></th> </thead> <tbody> {{#each variant.stock_items}} <tr> <td>{{this.stock_location_name}}</td> {{#if this.available}} <td> {{this.count_on_hand}} {{#if this.backorderable}} (<%= Spree.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 icon-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="<%= Spree.t(:add) %>" data-action="add"></button> </td> {{else}} <td><%= Spree.t(:out_of_stock) %></td> <td>0</td> {{/if}} </tr> {{/each}} </tbody> </fieldset> </script>
Version data entries
11 entries across 11 versions & 1 rubygems