<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
<% admin_breadcrumb(link_to @promotion.name, spree.admin_promotion_path(@promotion.id)) %>
<% admin_breadcrumb(plural_resource_name(Spree::PromotionCodeBatch)) %>
<%= form_for :promotion_code_batch, url: collection_url do |batch| %>
  <%= batch.hidden_field :promotion_id, value: params[:promotion_id] %>
  <%= render partial: 'form_fields', locals: {batch: batch, promotion_id: params[:promotion_id]} %>
  <%= batch.submit t('spree.actions.create'), class: 'btn btn-primary' %>
<% end %>
