Sha256: 8800b2a16406e5332bfcfadde3711a96b02fbd6294c17374f178b935e01327c9

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

<p>
  <%= condition.class.human_attribute_name(:description) %>
</p>
  <%= fields_for param_prefix, condition do |form| %>
    <div class="field products_condition_products">
      <%= form.label :product_ids_string, t('solidus_friendly_promotions.product_condition.choose_products') %>
      <%= form.hidden_field :product_ids_string, value: condition.product_ids.join(","), class: "fullwidth", is: "product-picker" %>
    </div>

    <div class="form-group">
      <%
        match_policy_options = options_for_select(
          SolidusFriendlyPromotions::Conditions::Product::MATCH_POLICIES.map { |s| [t("solidus_friendly_promotions.product_condition.match_#{s}"),s] },
          condition.preferred_match_policy
        )
      %>
      <% select = form.select :preferred_match_policy, match_policy_options %>
      <%= form.label :preferred_match_policy, t('solidus_friendly_promotions.product_condition.label', select: select).html_safe %>
      </label>
    </div>

    <div class="form-group">
      <%= form.label :preferred_line_item_applicable do %>
        <%= form.check_box :preferred_line_item_applicable %>
        <%= condition.class.human_attribute_name(:preferred_line_item_applicable) %>
      <% end %>
    </div>
  <% end %>

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/_product.html.erb
solidus_friendly_promotions-1.9.2 app/views/solidus_friendly_promotions/admin/condition_fields/_product.html.erb
solidus_friendly_promotions-1.9.1 app/views/solidus_friendly_promotions/admin/condition_fields/_product.html.erb
solidus_friendly_promotions-1.9.0 app/views/solidus_friendly_promotions/admin/condition_fields/_product.html.erb