Sha256: b9e8ad4fea5ff90b2e6fc85b8b469df077fccfc15484b4dff8ac6d165ea6bb7c

Contents?: true

Size: 704 Bytes

Versions: 137

Compression:

Stored size: 704 Bytes

Contents

<div class="form-group">
  <%= label_tag "#{param_prefix}_preferred_role_ids", t('spree.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="form-group">
  <label>
    <%= t('spree.user_role_rule.label', select: select_tag("#{param_prefix}[preferred_match_policy]", options_for_select(Spree::Promotion::Rules::UserRole::MATCH_POLICIES.map{ |s| [t("spree.user_role_rule.match_#{s}"),s] }, promotion_rule.preferred_match_policy), { class: 'custom-select'})).html_safe %>
  </label>
</div>

Version data entries

137 entries across 137 versions & 3 rubygems

Version Path
solidus_legacy_promotions-4.4.1 lib/views/backend/spree/admin/promotions/rules/_user_role.html.erb
solidus_legacy_promotions-4.4.0 lib/views/backend/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.3.4 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.2.4 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.1.5 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.3.3 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.3.2 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.1.4 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.3.1 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.3.0 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.2.3 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.1.3 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.0.4 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-3.4.6 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.0.3 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.1.2 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.2.2 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-3.4.5 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.2.1 app/views/spree/admin/promotions/rules/_user_role.html.erb
solidus_backend-4.2.0 app/views/spree/admin/promotions/rules/_user_role.html.erb