Sha256: df56441b2a5b8afe55ce8d7e2dddd802706db7d735e202558e3e04bf28ca09aa

Contents?: true

Size: 1.49 KB

Versions: 34

Compression:

Stored size: 1.49 KB

Contents

<div class="panel-heading">
  <h1 class="panel-title">
    <%= Spree.t(:rules) %>
  </h1>
</div>
<div id="rule_fields" class="panel-body">

  <%= form_tag spree.admin_promotion_promotion_rules_path(@promotion), :remote => true, :id => 'new_product_rule_form' 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), 'plus', 'submit', class: "btn-success" %>
    </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">
          <%= 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 margint">
      <% 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'), 'ok' %>
    </div>    
  <% end %>
</div>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.13 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.12 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.11 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.10 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.9 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.8 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.7 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.6 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.5 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.4 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.3 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.2 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.0.10 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.1 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.0 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.0.9 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/promotions/_rules.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/promotions/_rules.html.erb