% if @promotion && (@promotion.errors.any? || @promotion.rules.any? { |r| r.errors.any? }) %>
<% error_group = [@promotion.errors, @promotion.rules.map(&:errors)].flatten %>
<%= t(:errors_prohibited_this_record_from_being_saved, :count => error_group.count) %>:
<%= t(:there_were_problems_with_the_following_fields) %>:
<% error_group.each do |errors| %>
<% errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<% end %>