Sha256: 82b713b5b155ddb826ce16ca6602dee895f0fe2bf0916025e3a7486f8a065f50

Contents?: true

Size: 859 Bytes

Versions: 12

Compression:

Stored size: 859 Bytes

Contents

<div class="promotion_rule promotion-block card mb-3" id="<%= dom_id promotion_rule %>">
  <% type_name = promotion_rule.class.name.demodulize.underscore %>
  <div class="card-header d-flex justify-content-between">
    <%= link_to_with_icon 'delete.svg', '',
      spree.admin_promotion_promotion_rule_path(@promotion, promotion_rule),
      remote: true,
      method: :delete,
      class: 'delete order-2' %>
    <h5 class='card-title h5 mb-0 promotion-title'>
      <%= Spree.t("promotion_rule_types.#{type_name}.description") %>
    </h5>
  </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 } %>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.8.3 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.8.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.8.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.7.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.6.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.7.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.7.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.6.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.6.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.5.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
spree_backend-4.5.0 app/views/spree/admin/promotions/_promotion_rule.html.erb