Sha256: e0449b4926589ca3aea1ce528f980acef57d7452d30fb74b8ee3048bfccefdec
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
<div class="card-header"> <h5 class="card-title mb-0 h6"> <%= Spree.t(:rules) %> </h5> </div> <div id="rule_fields" class="card-body"> <%= form_tag spree.admin_promotion_promotion_rules_path(@promotion), remote: true, id: 'new_product_rule_form', class: 'mb-3' do %> <div class="form-group"> <%= label_tag :promotion_rule_type, Spree.t(:add_rule_of_type) %> <%= select_tag('promotion_rule[type]', options_for_promotion_rule_types(@promotion), class: 'select2') %> </div> <div class="form-actions"> <%= button Spree.t(:add), 'add.svg', 'submit', class: "btn-primary" %> </div> <% end %> <%= form_for @promotion, url: object_url, method: :put do |f| %> <div id="promotion-policy-select"> <% Spree::Promotion::MATCH_POLICIES.each do |policy| %> <div class="radio my-2"> <%= f.label "match_policy_#{policy}" do %> <%= f.radio_button :match_policy, policy %> <%= Spree.t "promotion_form.match_policies.#{policy}" %> <% end %> </div> <% end %> </div> <div id="rules" class="filter_list mt-3"> <% if @promotion.rules.any? %> <%= render partial: 'promotion_rule', collection: @promotion.rules, locals: {} %> <% else %> <div class="alert alert-warning"> <%= Spree.t(:no_rules_added) %> </div> <% end %> </div> <div class="promotion-update actions"> <%= button Spree.t('actions.update'), 'save.svg' %> </div> <% end %> </div>
Version data entries
4 entries across 4 versions & 1 rubygems