<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %> <% admin_breadcrumb(@promotion.name) %> <% content_for :page_actions do %>
  • <% if can?(:display, Spree::PromotionCode) %> <%= button_link_to Spree.t(:download_promotion_code_list), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv) %> <% end %>
  • <% end %> <%= form_for @promotion, :url => object_url, :method => :put do |f| %>
    <%= render :partial => 'form', :locals => { :f => f } %> <% if can?(:update, @promotion) %> <%= render :partial => 'spree/admin/shared/edit_resource_links' %> <% end %>
    <% end %>
    <%= render :partial => 'rules' %>
    <%= render :partial => 'actions' %>
    <% @promotion_keys = @promotion.flow_data.dig('filter', 'experience') || [] %>
    Enable for Flow experiences

    If you do not select single experience, promotion will be enabled for all experiences.

    <% for experience in Flow::Experience.all %>

    <% end %>