<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>
