Sha256: f86a5b63e7c275efa47b3351a6bd7489d00145d0c427c599d00f3670d8b2e214

Contents?: true

Size: 1.39 KB

Versions: 94

Compression:

Stored size: 1.39 KB

Contents

<script type='text/template' id='variant_split_template'>
  <tr class='stock-item-split' data-variant-id='{{variant.id}}'>
    <td colspan='2'>
      <%= Spree.t("move_variant_to", default: "Move {{variant.name}} to") %>
    </td>
    <td colspan='2'>
    <select name="item_stock_location" id='item_stock_location' style='width:100%;'>
      <option></option>
      <optgroup label="<%=Spree.t('existing_shipments')%>">
        {{#each shipments}}
        <option data-shipment-number='{{this.number}}' value='{{this.stock_location_id}}'>{{this.stock_location.name}}({{this.number}})</option>
        {{/each}}
      </optgroup>
      <optgroup label="<%=Spree.t('new_shipment_at_location')%>">
        {{#each variant.stock_items}}
          <option data-new-shipment='true' value='{{this.stock_location_id}}'>{{this.stock_location_name}}&nbsp({{this.count_on_hand}} on hand)</option>
        {{/each}}
      </optgroup>
      </select>
    </td>
    <td>
      <input class="quantity form-control" id="item_quantity" type="number" min="1" value="1" max="{{max_quantity}}">
    </td>
    <td class='actions'>
      <a href='#' class='cancel-split with-tip btn btn-sm btn-default' title='Cancel'>
        <span class="icon icon-arrow-left"></span>
      </a>
      <a href='#' class='save-split with-tip btn btn-sm btn-success' title='Save'>
        <span class="icon icon-save"></span>
      </a>
    </td>
  </tr>
</script>

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.14 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.13 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.12 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.11 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.4.6 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.10 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.9 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.8 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.7 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.6 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.5 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.4 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.3 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.2 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.1 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.0 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.2.9 app/views/spree/admin/variants/_split.js.erb
spree_backend-3.1.14 app/views/spree/admin/variants/_split.js.erb