Sha256: 883b0a535e10da16093ab1fbfec2df89776b9ec273dd20116b17a61e58fbf789

Contents?: true

Size: 910 Bytes

Versions: 11

Compression:

Stored size: 910 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 == 'user_logged_in' || type_name == 'first_order'%>'><%= 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

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.4.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.1 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.4.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.0 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/promotions/_promotion_rule.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/promotions/_promotion_rule.html.erb