Sha256: 76e32fe707acbd57ce9ba77ff69efaf911334199cfe2b1f36b1a22e6e068da49

Contents?: true

Size: 1.62 KB

Versions: 9

Compression:

Stored size: 1.62 KB

Contents

<fieldset id="rule_fields" class ="alpha eight columns 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(:rules) %></legend>

      <div class="field">
        <%= label_tag :promotion_rule_type, t(:add_rule_of_type) %>  
        <%= select_tag('promotion_rule[type]', options_for_promotion_rule_types(@promotion), :class => 'select2 fullwidth') %>
      </div>
      <div class="filter-actions actions">
        <%= button t(:add), 'icon-plus' %>
      </div>
    </fieldset>
  <% end %>

  
    <%= form_for @promotion, :url => object_url, :method => :put do |f| %>
      <fieldset class="no-border-top">
        <div id="promotion-pilicy-select" class="align-center row">
          <% Spree::Promotion::MATCH_POLICIES.each do |policy| %>
            <div class="alpha four columns">
              <label><%= f.radio_button :match_policy, policy %> <%= t "promotion_form.match_policies.#{policy}" %></label>  
            </div>
          <% end %>
        </div>
        
        <div id="rules" class="filter_list row">
          <% if @promotion.rules.any? %>
            <%= render :partial => 'promotion_rule', :collection => @promotion.rules, :locals => {} %>
          <% else %>
            <div class="no-objects-found">
              <%= t(:no_rules_added) %>
            </div>
          <% end %>
        </div>

        <div class="promotion-update filter-actions actions">
          <%= button t(:update), 'icon-refresh' %>
        </div>
      </fieldset>
    <% end %>
  

</fieldset>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_promo-1.3.5 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.4 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.3 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.2 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.1 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.0 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.0.rc2 app/views/spree/admin/promotions/_rules.html.erb
dup_spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_rules.html.erb
spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_rules.html.erb