Sha256: 2ce9f9df43653fc4dee4ce1996f4f358328553f7f9cfc5a81797128cc5f15e0f

Contents?: true

Size: 1001 Bytes

Versions: 5

Compression:

Stored size: 1001 Bytes

Contents

<script type='text/template' id='variant_autocomplete_template'>
  <div class='variant-autocomplete-item media align-items-center'>
    <figure class='variant-image media-left mb-0 mr-3'>
      {{#if variant.image }}
        <div class="admin-product-image-container small-img">
          <img src='{{variant.image}}' class="thumbnail mb-0" />
        </div>
      {{ else }}
        <div class="admin-product-image-container small-img">
          <%= inline_svg_tag "noimage/backend-missing-image.svg", class: "noimage", size: "60%*60%" %>
        </div>
      {{/if}}
    </figure>

    <div class='variant-details media-body'>
      <h5 class="variant-name media-heading h6 mb-0">{{variant.name}}</h5>
      {{#if variant.option_values}}
        {{#each variant.option_values}}
          <strong>{{this.option_type_presentation}}:</strong> {{name_or_presentation this}}<br/>
        {{/each}}
      {{/if}}
      <strong><%= Spree.t(:sku) %>:</strong> {{variant.sku}}
    </div>
  </div>
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-4.3.3 app/views/spree/admin/variants/_autocomplete.js.erb
spree_backend-4.3.2 app/views/spree/admin/variants/_autocomplete.js.erb
spree_backend-4.3.1 app/views/spree/admin/variants/_autocomplete.js.erb
spree_backend-4.3.0 app/views/spree/admin/variants/_autocomplete.js.erb
spree_backend-4.3.0.rc3 app/views/spree/admin/variants/_autocomplete.js.erb