Sha256: b975a8d9741c980e128da6a147f8200e8f5dff3dcf82b226393c0f463a7d33be

Contents?: true

Size: 1.1 KB

Versions: 30

Compression:

Stored size: 1.1 KB

Contents

<% selected = input.has_key?(:selected) ? input[:selected] : [] %>

<% if ['st', 'nst'].include? input[:clause] %>
<!-- Render nothing -->
<% elsif %>
  <%= tag.div class: 'refine-filter-condition-container' do %>
    <%= tag.div data: {
      action: "$change->refine--update#selected blur->refine--update#refreshFromServer",
      controller: 'fields--super-select',
      fields__super_select_enable_search_value: 'true',
      fields__super_select_container_width_value: 'resolve',
    } do %>
      <select
        class="refine-filter-condition-select"
        data-fields--super-select-target="select"
        name="values"
        data-input-id='<%= input_id if input_id%>'
      >
      <% condition.meta[:options].each do |option| %>
        <option
          value="<%= option[:id] %>"
          <% if selected.find { |id|  id == option[:id] } %>selected<% end %>
        >
          <%= option[:display] %>
        </option>
      <% end %>

      </select>
    <% end %>
    <% if meta[:postfix] %>
      <span class="refine-filter-condition-postfix"><%= meta[:postfix] %></span>
    <% end %>
  <% end %>
<% end %>


Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.12 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.11 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.10 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.9 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.8 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.6 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.5 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.4 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.3 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.2 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.1 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.11.0 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.10.1 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.10.0 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.9.14 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.9.13 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.9.12 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.9.11 app/views/refine/blueprints/clauses/_filter_condition.html.erb
refine-rails-2.9.10 app/views/refine/blueprints/clauses/_filter_condition.html.erb