<% admin_breadcrumb(link_to plural_resource_name(SolidusPromotions::Promotion), solidus_promotions.admin_promotions_path) %>
<% admin_breadcrumb(link_to @promotion.name, solidus_promotions.admin_promotion_path(@promotion.id)) %>
<% admin_breadcrumb(plural_resource_name(SolidusPromotions::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 %>
