Sha256: 3e627f3ab6b9e28b311338298479175384579d5dea33d0c407fbb0021580396c

Contents?: true

Size: 752 Bytes

Versions: 5

Compression:

Stored size: 752 Bytes

Contents

- if product.purchasable?
  = form_tag add_to_users_wish_list_path, method: 'post', class: 'wish-list-form', data: { wish_list_form: '' } do
    = hidden_field_tag :product_id, product.id, id: "wishlist_product_id_#{dom_id(product)}"
    = hidden_field_tag :sku, product.current_sku, id: "wishlist_sku_#{dom_id(product)}"
    = hidden_field_tag :quantity, 1, id: "wishlist_quantity_#{dom_id(product)}"
    = hidden_field_tag :return_to, users_wish_list_path, id: "wishlist_return_to_#{dom_id(product)}"
    .wish-list-form__action
      = button_tag value: 'add_to_wish_list', class: 'text-button' do
        = inline_svg('workarea/storefront/icons/heart.svg', class: 'text-button__icon')
        = t('workarea.storefront.wish_lists.add_to_wish_list')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.2.1 app/views/workarea/storefront/wish_lists/_add_form.html.haml
workarea-nvy_theme-1.2.0 app/views/workarea/storefront/wish_lists/_add_form.html.haml
workarea-nvy_theme-1.1.4 app/views/workarea/storefront/wish_lists/_add_form.html.haml
workarea-nvy_theme-1.1.3 app/views/workarea/storefront/wish_lists/_add_form.html.haml
workarea-nvy_theme-1.1.2 app/views/workarea/storefront/wish_lists/_add_form.html.haml