Sha256: 082489d2761497fc4f77ef8b782f9227665ad8ca3b555039792726d1e2fde8b7

Contents?: true

Size: 1.35 KB

Versions: 23

Compression:

Stored size: 1.35 KB

Contents

<% selected = input.has_key?(:selected) ? input[:selected] : [] %>
<% multiple = meta_clause[:multiple] ? "multiple" : "" %>
<% if ['st', 'nst'].include? input[:clause] %>
<!-- Render nothing -->
<% elsif %>
  <div class="refine-option-condition-container <%= "has-error" if criterion.errors.any? %> ">
    <%= 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 <%=multiple%>
        class="refine-option-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] %>"
          title="<%= option[:display] %>"
          <% if selected.find { |id|  id == option[:id] } %>selected<% end %>
        >
          <%= option[:display].truncate(64) %>
        </option>
      <% end %>

      </select>
    <% end %>
    <% if meta[:postfix] %>
      <span class="refine-option-condition-postfix"><%= meta[:postfix] %></span>
    <% end %>
    <%= render partial: 'refine/blueprints/criterion_errors', locals: { criterion: criterion } %>
  </div>
<% end %>


Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
refine-rails-2.13.3 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.13.2 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.13.1 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.13.0 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.12.2 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.12.1 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.12.0 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.12 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.11 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.10 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.9 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.8 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.6 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.5 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.4 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.3 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.2 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.1 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.11.0 app/views/refine/blueprints/clauses/_option_condition.html.erb
refine-rails-2.10.1 app/views/refine/blueprints/clauses/_option_condition.html.erb