Sha256: 432bf1d2ab42eaf243b4ae80761d088252aea84b6a5e9504c347a10111624ae9

Contents?: true

Size: 994 Bytes

Versions: 2

Compression:

Stored size: 994 Bytes

Contents

.grid__cell
  - if product.subscribable?
    %div{ data: { subscription_fields: '' } }
      .button-property
        .value
          = check_box_tag :subscription, nil, params[:subscription], id: dom_id(product, 'subscription')
        = label_tag dom_id(product, 'subscription'), nil, class: 'button-property__name' do
          %span.button-property__text= t('workarea.storefront.products.subscribe')
          = link_to t('workarea.storefront.products.subscription_info_link'), subscriptions_path

      .property{ class: ('hidden' unless params[:subscription].present?) }
        = label_tag :subscription_frequency, nil, class: 'property__name', for: dom_id(product, 'subscription_frequency') do
          %span.property__text= t('workarea.storefront.products.subscription_frequency_options')
        .value
          = select_tag :subscription_frequency, options_for_select(subscription_frequency_options, params[:subscription_frequency]), id: dom_id(product, 'subscription_frequency')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-one_theme-1.3.1 app/views/workarea/storefront/products/_subscription_fields.html.haml
workarea-one_theme-1.3.0 app/views/workarea/storefront/products/_subscription_fields.html.haml