Sha256: 8c4c005e70d523bfff7ac431047347f6be7641d61a5ee7cd1dbe9b9856ababc4

Contents?: true

Size: 980 Bytes

Versions: 36

Compression:

Stored size: 980 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>
  <% if can?(:destroy, promotion_action) %>
    <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), :remote => true, :method => :delete, :class => 'delete' %>
  <% end %>

  <% 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

36 entries across 36 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.3 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.4.2 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.3.2 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.2.3 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.1.4 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.2 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.4.1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.1.0 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.0 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.4.0 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.3.1 app/views/spree/admin/promotions/_promotion_action.html.erb
solidus_backend-1.3.0 app/views/spree/admin/promotions/_promotion_action.html.erb