Sha256: 82e5150625611ee63c196bb74c01fd37df7da0b466415b7c6d779aa52101edb4

Contents?: true

Size: 834 Bytes

Versions: 7

Compression:

Stored size: 834 Bytes

Contents

<div class="promotion_rule promotion-block alpha omega eight columns" id="<%= dom_id promotion_rule %>">
  <% type_name = promotion_rule.class.name.demodulize.underscore %>
  <h6 class='promotion-title <%= 'no-text' if type_name == 'user_logged_in' || type_name == 'first_order'%>'><%= t("promotion_rule_types.#{type_name}.description") %></h6>
  <%= link_to_with_icon 'icon-trash', '', spree.admin_promotion_promotion_rule_path(@promotion, promotion_rule), :remote => true, :method => :delete, :class => 'delete' %>
  
  <% param_prefix = "promotion[promotion_rules_attributes][#{promotion_rule.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_rule.id %>  
  <%= render :partial => "spree/admin/promotions/rules/#{type_name}", :locals => { :promotion_rule => promotion_rule, :param_prefix => param_prefix } %>
</div>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree_promo-1.3.3 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_promo-1.3.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_promo-1.3.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_promo-1.3.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_promo-1.3.0.rc2 app/views/spree/admin/promotions/_promotion_rule.html.erb
dup_spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb