Sha256: 8968f062f053e4e217146d11cf0cb37e9f3991defdc9ce8e43c0a519f1fbb0f5

Contents?: true

Size: 1.26 KB

Versions: 7

Compression:

Stored size: 1.26 KB

Contents

<div class="refine--option-condition-container" data-controller="refine--typeahead-list">
  <div class="refine--search-box">
    <span class="material-icons refine--icon-search">search</span>
    <input class="refine--search-trigger" data-search-target="filterProperties" placeholder="<%= t('.type_to_search') %>..." type="text" data-action="refine--typeahead-list#filter" autofocus>
  </div>

  <% criterion.options.each do |option| %>
    <%= tag.label class: "refine--option-label",
      data: {
        refine__typeahead_list_target: "listItem",
        list_item_value: option.display
      } do
    %>
      <% if criterion.multiple? %>
        <%= check_box_tag input_fields.field_name("selected", multiple: true), option.id, criterion.input.selected.to_a.include?(option.id), class: "refine--option-input", form: form_id %>
      <% else %>
        <%= radio_button_tag input_fields.field_name("selected"), option.id, (criterion.input.selected == [option.id]), class: "refine--option-input", form: form_id %>
      <% end %>
      <span class="refine--option-text"><%= option.display.truncate(64) %></span>
    <% end %>
  <% end %>
  <% if criterion.condition.meta[:postfix] %>
    <span class="refine-option--condition-postfix"><%= meta[:postfix] %></span>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refine-rails-2.9.7 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.6 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.5 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.4 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.3 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.2 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.9.1 app/views/refine/inline/inputs/_option_condition.html.erb