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