Sha256: f56eb4f10179ce6638c7dd42bff571915ef7cfdb818ad27900789d9feb57d973

Contents?: true

Size: 1.78 KB

Versions: 15

Compression:

Stored size: 1.78 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"><%= Spree.t(:rules) %></legend>

      <% if can?(:update, @promotion) %>
        <div class="field">
          <%= label_tag :promotion_rule_type, Spree.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 Spree.t(:add), 'plus' %>
        </div>
      <% end %>
    </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 %> <%= Spree.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">
              <%= Spree.t(:no_rules_added) %>
            </div>
          <% end %>
        </div>

        <% if can?(:update, @promotion) %>
          <div class="promotion-update filter-actions actions">
            <%= button Spree.t('actions.update'), 'refresh' %>
          </div>
        <% end %>
      </fieldset>
    <% end %>


</fieldset>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.4 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.2 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.1 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.3 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.0 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.2 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.1 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.0 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/promotions/_rules.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/promotions/_rules.html.erb