Sha256: 7455176f5d8b88cf38fd7a9fbaa7d9a09b08515070acf0ccf386292fdd4c48bb
Contents?: true
Size: 740 Bytes
Versions: 9
Compression:
Stored size: 740 Bytes
Contents
<div class="field alpha omega eight columns"> <%= label_tag "#{param_prefix}_preferred_role_ids", Spree.t('user_role_rule.choose_roles') %> <%= select_tag "#{param_prefix}[preferred_role_ids]", options_from_collection_for_select( Spree::Role.all, :id, :name, promotion_rule.preferred_role_ids ), class: 'select2 fullwidth', multiple: true %> </div> <div class="field alpha omega eight columns"> <label> <%= Spree.t('user_role_rule.label', select: select_tag("#{param_prefix}[preferred_match_policy]", options_for_select(Spree::Promotion::Rules::UserRole::MATCH_POLICIES.map{ |s| [Spree.t("user_role_rule.match_#{s}"),s] }, promotion_rule.preferred_match_policy), { class: 'select2'})).html_safe %> </label> </div>
Version data entries
9 entries across 9 versions & 1 rubygems