Sha256: c7dbd0b38e505a31f95840d65c1b2e93fdc6c2faebdfe141065928f8700a05f8
Contents?: true
Size: 925 Bytes
Versions: 2
Compression:
Stored size: 925 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"><%= 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/shared/error_messages", :locals => { :target => promotion_action } %> <%= render :partial => "spree/admin/promotions/actions/#{type_name}", :locals => { :promotion_action => promotion_action, :param_prefix => param_prefix } %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_promo-1.3.5 | app/views/spree/admin/promotions/_promotion_action.html.erb |
spree_promo-1.3.4 | app/views/spree/admin/promotions/_promotion_action.html.erb |