Sha256: 3e531d1174b3b5fb9928daf02aa8ee79425b0b97e49f6644eea6ff5e805275c2

Contents?: true

Size: 935 Bytes

Versions: 54

Compression:

Stored size: 935 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'%>'><%= Spree.t("promotion_rule_types.#{type_name}.description") %></h6>
  <%= link_to_with_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/shared/error_messages", :locals => { :target => promotion_rule } %>
  <%= render :partial => "spree/admin/promotions/rules/#{type_name}", :locals => { :promotion_rule => promotion_rule, :param_prefix => param_prefix } %>
</div>

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
solidus_backend-1.0.7 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.6 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.5 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.4 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.3 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.4.10 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.3.13 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.2.14 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.0.rc2 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.4.9 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.3.12 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.2.13 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.0.pre3 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-1.0.0.pre2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.4.8 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-2.3.11 app/views/spree/admin/promotions/_promotion_rule.html.erb