Sha256: 621f75749ff7bf78c542dee88256f6dee46b98012c8fe0c60dcb15a9b3a793fb

Contents?: true

Size: 882 Bytes

Versions: 50

Compression:

Stored size: 882 Bytes

Contents

<div class="promotion_rule promotion-block panel panel-default" id="<%= dom_id promotion_rule %>">
  <% type_name = promotion_rule.class.name.demodulize.underscore %>
  <div class="panel-heading">
    <%= link_to_with_icon 'delete', '', spree.admin_promotion_promotion_rule_path(@promotion, promotion_rule), remote: true, method: :delete, class: 'delete pull-right' %>
    <h3 class='panel-title promotion-title <%= 'no-text' if type_name == 'user_logged_in' || type_name == 'first_order'%>'><%= Spree.t("promotion_rule_types.#{type_name}.description") %></h3>
  </div>
  <% 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 } rescue nil %>
</div>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
spree_backend-3.3.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.8 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.3.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.3.0.rc4 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.3.0.rc3 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.7 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.3.0.rc2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.6 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.3.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.5 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.4 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.3 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.0.10 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.0.9 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/promotions/_promotion_rule.html.erb