Sha256: a3effbbd6dd6be6e8bf350318bb9dad076602f8d43278756119180996e6b30be
Contents?: true
Size: 833 Bytes
Versions: 5
Compression:
Stored size: 833 Bytes
Contents
<p> <%= condition.class.human_attribute_name(:description) %> </p> <div class="form-group"> <%= label_tag "#{param_prefix}_preferred_role_ids", t('solidus_promotions.user_role_condition.choose_roles') %> <%= select_tag "#{param_prefix}[preferred_role_ids]", options_from_collection_for_select( Spree::Role.all, :id, :name, condition.preferred_role_ids ), class: 'fullwidth', is: 'select-two', multiple: true %> </div> <div class="form-group"> <label> <%= t('solidus_promotions.user_role_condition.label', select: select_tag("#{param_prefix}[preferred_match_policy]", options_for_select(SolidusPromotions::Conditions::UserRole::MATCH_POLICIES.map{ |s| [t("solidus_promotions.user_role_condition.match_#{s}"),s] }, condition.preferred_match_policy), { class: 'custom-select'})).html_safe %> </label> </div>
Version data entries
5 entries across 5 versions & 1 rubygems