Sha256: 9031e80d6a838f0d1fea1eb8d095d0fced5cc54a5f4fa3839f348b3718810e65
Contents?: true
Size: 913 Bytes
Versions: 139
Compression:
Stored size: 913 Bytes
Contents
<div class="promotion_rule promotion-block col-12" id="<%= dom_id promotion_rule %>"> <% type_name = promotion_rule.model_name.element %> <h6 class='promotion-title <%= 'no-text' if type_name.in? %w(user_logged_in first_order one_use_per_user) %>'><%= promotion_rule.class.human_attribute_name(:description) %></h6> <% if can?(:destroy, promotion_rule) %> <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_rule_path(@promotion, promotion_rule), remote: true, method: :delete, class: 'delete' %> <% end %> <% 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: promotion_rule.to_partial_path, locals: { promotion_rule: promotion_rule, param_prefix: param_prefix } %> </div>
Version data entries
139 entries across 139 versions & 3 rubygems