Sha256: 49e376f842f28f65d6bbc6501ca348854e2fd166a27c21260cebeb3d59777047

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

<p class="field products_rule_products_source_field">
  <label><%= radio_button_tag "#{param_prefix}[products_source]", :manual, promotion_rule.product_group.nil? %> <%= t "product_rule.product_source.manual" %></label> &nbsp;
  <label><%= radio_button_tag "#{param_prefix}[products_source]", :group, promotion_rule.product_group.present? %> <%= t "product_rule.product_source.group" %></label>
</p>
<p class="field products_rule_product_group">
  <label><%= t('product_group') %><br />
    <%= select_tag "#{param_prefix}[product_group_id]", '<option></option>' + options_from_collection_for_select(ProductGroup.all, :id, :name, promotion_rule.product_group_id) %></label>
</p>
<p class="field products_rule_products">
  <label>
    <%= t('product_rule.choose_products') %><br />
    <%= product_picker_field "#{param_prefix}[product_ids_string]", promotion_rule.product_ids_string %>
</p>
<p>
  <label>
    <%= t("product_rule.label", :select => select_tag("#{param_prefix}[preferred_match_policy]", options_for_select(Promotion::Rules::Product::MATCH_POLICIES.map{|s| [t("product_rule.match_#{s}"),s] }, promotion_rule.preferred_match_policy))).html_safe %>
  </label>
</p>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_promo-0.30.2 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.40.4 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.50.0 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.40.3 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.40.2 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.40.1 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.40.0 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.30.1 app/views/admin/promotions/rules/_product.html.erb
spree_promo-0.30.0 app/views/admin/promotions/rules/_product.html.erb