Sha256: 36cf66b6f4b1bfbbb21300c811d98ac2dec7fad7369c5b7a1d11e78595027039

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

- if product.sku_options.one?
  = hidden_field_tag bundle_field_prefix(bundle, 'sku'), product.sku_options.first.second, id: dom_id(product, bundle_name_prefix(bundle, 'sku'))
- else
  .property
    = label_tag bundle_field_prefix(bundle, 'sku'), nil, class: 'property__name', for: dom_id(product, bundle_name_prefix(bundle, 'sku')) do
      %span.property__text= t('workarea.storefront.products.select_options')
    .value
      = select_tag bundle_field_prefix(bundle, 'sku'), options_for_select(product.sku_options, product.current_sku), required: false, id: dom_id(product, bundle_name_prefix(bundle, 'sku')), data: { bundle_sku_select: product.slug }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-product_bundles-1.0.1 app/views/workarea/storefront/products/bundled_templates/_generic.html.haml
workarea-product_bundles-1.0.0 app/views/workarea/storefront/products/bundled_templates/_generic.html.haml