Sha256: 067c4f935ca4d65f43f344eae161b0c336530343e98f4eadf54d7f5dc6340e16

Contents?: true

Size: 1.63 KB

Versions: 47

Compression:

Stored size: 1.63 KB

Contents

<div class="panel-body">
  <div class="promo-rule-option-values">
    <div class="js-promo-rule-option-values"></div>

    <button class="btn btn-primary btn-success js-add-promo-rule-option-value">
      <span class="icon icon-add"></span>
      <%= Spree.t(:add) %>
    </button>
  </div>
</div>

<%= content_tag :div, nil, class: "hidden js-original-promo-rule-option-values",
  data: { :'original-option-values' => promotion_rule.preferred_eligible_values } %>

<script type="text/x-handlebars-template" id="promo-rule-option-value-option-values-select-name-template">
  <%= param_prefix %>[preferred_eligible_values][{{productId}}]
</script>

<script type="text/x-handlebars-template" id="promo-rule-option-value-template">
  <div class="promo-rule-option-value panel panel-default">
    <div class="panel-heading">
      <a class="js-remove-promo-rule-option-value delete pull-right">
        <span class="icon icon-delete"></span>
      </a>
      <div class="col-md-6">
        <label><%= Spree.t(:product) %></label>
      </div>
      <div class="col-md-5">
        <label><%= Spree.t(:option_values) %></label>
      </div>
      <div class="clearfix"></div>
    </div>
    <div class="panel-body row">
      <div class="col-md-6">
        <input class="js-promo-rule-option-value-product-select fullwidth" type="hidden" value="{{ productSelect.value }}">
      </div>
      <div class="col-md-6">
        <input class="js-promo-rule-option-value-option-values-select fullwidth" name="<%= param_prefix %>[preferred_eligible_values][{{ productSelect.value }}]" type="hidden" value={{optionValuesSelect.value}}>
      </div>
    </div>
  </div>
</script>

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
spree_backend-3.2.9 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.14 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.8 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.13 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.7 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.12 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.6 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.11 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.10 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.5 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.9 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.4 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.8 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.7 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.3 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.2 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.6 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.1.5 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.1 app/views/spree/admin/promotions/rules/_option_value.html.erb
spree_backend-3.2.0 app/views/spree/admin/promotions/rules/_option_value.html.erb