<%= t(:rules) %> <%= form_for @promotion, :url => object_url, :html => { :method => :put } do |f| %>

<% Promotion::MATCH_POLICIES.each do |policy| %>   <% end %>

<% if @promotion.rules.any? %> <%= render :partial => 'promotion_rule', :collection => @promotion.rules, :locals => {} %> <% else %> <% end %>

<%= button t(:update) %>

<% end %> <%= form_tag admin_promotion_promotion_rules_path(@promotion), :remote => true, :id => 'new_product_rule_form' do %> <% options = options_for_select( Rails.application.config.spree.promotions.rules.map(&:name).map {|name| [ t("promotion_rule_types.#{name.demodulize.underscore}.name"), name] } ) %>

<%= label_tag :promotion_rule_type, t(:add_rule_of_type) %> <%= select_tag('promotion_rule[type]', options) %> <%= submit_tag t(:add) %>

<% end %>