Sha256: c43cb04d1af2d462ea01dcad5110e53e72323002c5b11b8b5e22ea8b8993d60c

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

<p>
  <%= condition.class.human_attribute_name(:description) %>
</p>
<div class="field promo-condition-option-values">
  <div class="param-prefix hidden" data-param-prefix="<%= param_prefix %>"></div>
  <div class="row">
    <div class="col-6"><%= label_tag nil, Spree::Product.model_name.human %></div>
    <div class="col-6"><%= label_tag nil, plural_resource_name(Spree::OptionValue) %></div>
  </div>

  <div class="form-group">
    <div data-controller="product-option-values">
      <template data-product-option-values-target="template">
        <%= render "solidus_friendly_promotions/admin/condition_fields/line_item_option_value/option_value_fields", product_option_values: [nil, []], form: form %>
      </template>
      <% form.object.preferred_eligible_values.each do |product_option_values| %>
        <%= render "solidus_friendly_promotions/admin/condition_fields/line_item_option_value/option_value_fields", product_option_values: product_option_values, form: form %>
      <% end %>
      <div class="mb-3" data-product-option-values-target="links">
        <%= link_to t(:add_product, scope: [:solidus_friendly_promotions, :line_item_option_value_condition]), "#", class: "btn btn-outline-primary", data: { action: "click->product-option-values#add_row" } %>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 app/views/solidus_friendly_promotions/admin/condition_fields/_line_item_option_value.html.erb
solidus_friendly_promotions-1.9.2 app/views/solidus_friendly_promotions/admin/condition_fields/_line_item_option_value.html.erb
solidus_friendly_promotions-1.9.1 app/views/solidus_friendly_promotions/admin/condition_fields/_line_item_option_value.html.erb
solidus_friendly_promotions-1.9.0 app/views/solidus_friendly_promotions/admin/condition_fields/_line_item_option_value.html.erb