Sha256: a2d2fb35b46c0df76efe796dc99f05a536e904c257d7e7f8b82de48a199042b5

Contents?: true

Size: 1.37 KB

Versions: 22

Compression:

Stored size: 1.37 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>

  <div class="refine--option-list">
    <% 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" title="<%= option.display %>"><%= option.display.truncate(64) %></span>
      <% end %>
    <% end %>
    <% if criterion.condition.meta[:postfix] %>
      <span class="refine-option--condition-postfix"><%= meta[:postfix] %></span>
    <% end %>
  </div>
</div>

Version data entries

22 entries across 17 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.12.0 app/views/refine/advanced_inline/inputs/_option_condition.html.erb
refine-rails-2.11.12 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.12 app/views/refine/advanced_inline/inputs/_option_condition.html.erb
refine-rails-2.11.11 app/views/refine/advanced_inline/inputs/_option_condition.html.erb
refine-rails-2.11.11 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.10 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.10 app/views/refine/advanced_inline/inputs/_option_condition.html.erb
refine-rails-2.11.9 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.9 app/views/refine/advanced_inline/inputs/_option_condition.html.erb
refine-rails-2.11.8 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.6 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.5 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.4 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.3 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.2 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.1 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.11.0 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.10.1 app/views/refine/inline/inputs/_option_condition.html.erb
refine-rails-2.10.0 app/views/refine/inline/inputs/_option_condition.html.erb