Sha256: e831ee10e82db0a57eb5b46ebe9b15664f9024186b8408a56009cfdb007708eb

Contents?: true

Size: 1.45 KB

Versions: 11

Compression:

Stored size: 1.45 KB

Contents

<%
  groups = Refine::Inline::Criterion.groups_from_filter(@refine_filter, client_id: @refine_client_id, stable_id: @refine_stable_id)

  root_data = (defined?(data) && data) || {}

  main_row_class = class_names "refine--filter-row" => true,
    "refine--has-many-groups" => groups.many?
%>

<%= tag.div class: "refine--filter-wrapper", id: "refine-inline-filter-#{@refine_client_id}", data: root_data do %>
  <%= tag.div class: main_row_class do %>
    <% if @refine_filter.blueprint.empty? %>
      <%= render "refine/advanced_inline/filters/add_first_condition_button", position: 0, btn_class: "refine--add-first-condition-btn" %>
    <% else %>
      <div class="refine--groups-wrapper">
        <% groups.each.with_index do |group, i| %>
          <%= render "refine/advanced_inline/filters/or_separator", group: group, group_position: i %>
          <%= render "refine/advanced_inline/filters/group", group: group, group_count: groups.count, condition_count: group.count %>
          <% if i == groups.length - 1 %>
            <%= render "refine/advanced_inline/filters/or_button", position: @refine_filter.blueprint.length %>
          <% end %>
        <% end %>

      </div>
    <% end %>
   <% if @refine_filter.blueprint&.any? %>
      <div class="refine--filter-control-group">
        <%= render "refine/advanced_inline/filters/clear_button" %>
        <%= render "refine/advanced_inline/filters/save_button" %>
      </div>
    <% end %> 
  <% end %>
  
<% end %>




Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refine-rails-2.13.3 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.13.2 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.13.1 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.13.0 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.12.2 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.12.1 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.12.0 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.11.12 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.11.11 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.11.10 app/views/refine/advanced_inline/filters/_show.html.erb
refine-rails-2.11.9 app/views/refine/advanced_inline/filters/_show.html.erb