Sha256: 174b7387e39b69f48a6ad581c26a4f24a828918552546d30b08672e13288f6bc

Contents?: true

Size: 1.78 KB

Versions: 34

Compression:

Stored size: 1.78 KB

Contents

.discount__node-line
  %p.discount__node-group
    %span.discount__node Take
    %span.discount__node= select_tag 'discount[amount_type]', options_for_select(@discount.amount_type_options, @discount.amount_type), title: 'Type of Amount'
    %span.discount__node
      %span.property.property--inline
        = text_field_tag 'discount[amount]', @discount.amount, class: 'text-box text-box--small', title: 'Amount of Discount', placeholder: '10', required: true
    %span.discount__node off
    %span.discount__node= select_tag 'discount[category_ids]', options_from_collection_for_select(@discount.categories, 'id', 'name', @discount.category_ids), multiple: true, data: { remote_select: { source: catalog_categories_path(format: :json), options: { placeholder: 'Category A, Category B' } }.to_json }

.discount__node-line
  %p.discount__node-group
    %span.discount__node= select_tag 'condition_options', options_for_select(@discount.condition_options, @discount.selected_condition_option), title: 'When to Apply Discount', data: { discount_options_menu: { type: 'condition' }.to_json }
  = render 'workarea/admin/pricing_discounts/conditions/order_total', discount: @discount
  = render 'workarea/admin/pricing_discounts/conditions/item_quantity', discount: @discount
  = render 'workarea/admin/pricing_discounts/conditions/user_tags', discount: @discount
  = append_partials('admin.discount_conditions', discount: @discount)

  %p.discount__node-group
    %span.discount__node applied
    %span.discount__node= select_tag 'application_options', options_for_select(@discount.application_options, @discount.selected_application_option), title: 'When to Apply Discount', data: { discount_options_menu: { type: 'application' }.to_json }
  = render 'workarea/admin/pricing_discounts/conditions/promo_code', discount: @discount

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-admin-3.4.25 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.24 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.23 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.22 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.21 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.20 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.19 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.18 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.17 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.16 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.15 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.14 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.13 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml
workarea-admin-3.4.12 app/views/workarea/admin/pricing_discounts/properties/_category.html.haml