Sha256: 50f317daa8b218dba783e3929079b5f7cb4b8c22494731807103bc0c1535ca7c

Contents?: true

Size: 649 Bytes

Versions: 62

Compression:

Stored size: 649 Bytes

Contents

%form{ class: 'product-details__add-to-cart-form', data: { analytics: { event: 'addToCart', domEvent: 'submit', payload: { foo: 'baz' } }.to_json } }

  = hidden_field_tag :product_id, 'PRODUCT1'
  = hidden_field_tag :sku, 'foo'

  .product-details__quantity
    .property
      = label_tag :quantity, nil, class: 'property__name', for: "quantity_PRODUCT1" do
        %span.property__text Quantity
      .value= number_field_tag :quantity, 1, class: 'text-box text-box--x-small', required: true, min: 1, id: "quantity_PRODUCT1"

  %p.product-details__add-to-cart-action= button_tag 'Add to Cart', value: 'add_to_cart', class: 'button button--large'

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.4.27 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.4 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.26 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.3 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.25 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.2 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.24 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.1 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.23 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.22 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.0 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.21 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.5.0.beta.1 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.20 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.19 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.18 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.17 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.16 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.15 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml
workarea-storefront-3.4.14 test/javascripts/fixtures/analytics_add_to_cart_form.html.haml