Sha256: d2c5d98c4131f13aa50d7dee9d26a42a54a5aefda6ca17ce6fa8e5fb1f0d1cd8
Contents?: true
Size: 1.94 KB
Versions: 13
Compression:
Stored size: 1.94 KB
Contents
<fieldset id="rule_fields" class ="no-border-bottom no-border-top"> <%= form_tag spree.admin_promotion_promotion_rules_path(@promotion), remote: true, id: 'new_product_rule_form' do %> <fieldset> <legend align="center"><%= t('spree.rules') %></legend> <% if can?(:update, @promotion) %> <div class="field"> <%= label_tag :promotion_rule_type, t('spree.add_rule_of_type') %> <%= select_tag('promotion_rule[type]', options_for_promotion_rule_types(@promotion), include_blank: t(:choose_promotion_rule, scope: 'spree'), class: 'custom-select fullwidth') %> </div> <div class="filter-actions actions"> <%= button_tag t('spree.actions.add'), class: 'btn btn-primary' %> </div> <% end %> </fieldset> <% end %> <%= form_for @promotion, url: object_url, method: :put do |f| %> <fieldset class="no-border-top"> <div id="promotion-policy-select" class="align-center row"> <% Spree::Promotion::MATCH_POLICIES.each do |policy| %> <div class="col-6"> <label><%= f.radio_button :match_policy, policy %> <%= t "spree.promotion_form.match_policies.#{policy}" %></label> </div> <% end %> </div> <div id="rules" class="filter_list"> <% if @promotion.rules.any? %> <div class="col-12"> <div class="row"> <%= render partial: 'promotion_rule', collection: @promotion.rules, locals: {} %> </div> </div> <% else %> <div class="no-objects-found"> <%= t('spree.no_rules_added') %> </div> <% end %> </div> <% if can?(:update, @promotion) %> <div class="promotion-update filter-actions actions"> <%= button_tag t('spree.actions.update'), class: 'btn btn-primary' %> </div> <% end %> </fieldset> <% end %> </fieldset>
Version data entries
13 entries across 13 versions & 1 rubygems