Sha256: 5613444c08537fd2a0c2bdec1612727df564aa3c2cc5d1877346b9d085e69d01

Contents?: true

Size: 491 Bytes

Versions: 7

Compression:

Stored size: 491 Bytes

Contents

= hidden_field_tag 'product_rule[name]', 'category'
Name
= select_tag 'product_rule[operator]', options_for_select([['equal', 'equal'], ['not equal', 'not_equal']], rule.operator)
- categories = Workarea::Catalog::Category.any_in(id: rule.terms)
= select_tag 'product_rule[value]', options_from_collection_for_select(categories, 'id', 'name', rule.terms), multiple: true, data: { remote_select: { source: catalog_categories_path, options: { placeholder: 'Choose a category...' } }.to_json }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-admin-3.4.18 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.17 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.16 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.15 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.14 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.13 app/views/workarea/admin/product_rules/fields/_category.html.haml
workarea-admin-3.4.12 app/views/workarea/admin/product_rules/fields/_category.html.haml