Sha256: d3130de31dd11fd580c485e6895ae47d6cda4339fc5784375c533e8407ada40b

Contents?: true

Size: 828 Bytes

Versions: 5

Compression:

Stored size: 828 Bytes

Contents

<div class="promotion_action promotion-block <%= promotion_action.type.to_s.demodulize.underscore %>" id="<%= dom_id promotion_action %>">
  <% type_name = promotion_action.class.name.demodulize.underscore %>
  <h6 class="promotion-title"><%= Spree.t("promotion_action_types.#{type_name}.description") %></h6>
  <%= link_to_with_icon 'icon-trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), :remote => true, :method => :delete, :class => 'delete' %>
  
  <% param_prefix = "promotion[promotion_actions_attributes][#{promotion_action.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_action.id %>
  
  <%= render :partial => "spree/admin/promotions/actions/#{type_name}",
             :locals => { :promotion_action => promotion_action, :param_prefix => param_prefix } %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-2.0.3 app/views/spree/admin/promotions/_promotion_action.html.erb
spree_backend-2.0.2 app/views/spree/admin/promotions/_promotion_action.html.erb
spree_backend-2.0.1 app/views/spree/admin/promotions/_promotion_action.html.erb
spree_backend-2.0.0 app/views/spree/admin/promotions/_promotion_action.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/promotions/_promotion_action.html.erb