<% groups = Refine::Inline::Criterion.groups_from_filter(@refine_filter, client_id: @refine_client_id, stable_id: @refine_stable_id) 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}" do %> <%= tag.div class: main_row_class do %> <% if @refine_filter.blueprint.empty? %> <%= render "refine/inline/filters/add_first_condition_button", position: 0, btn_class: " refine--add-first-condition-btn" %> <% else %>
<%= t('refine.inline.filters.filter') %>:
<% groups.each.with_index do |group, i| %> <% unless i == 0 %>
<%= t("refine.inline.filters.or") %>
<% end %> <%= render "refine/inline/filters/group", group: group %> <% end %>
<%= render "refine/inline/filters/or_button", position: @refine_filter.blueprint.length %>
<%= render "refine/inline/filters/save_button" %>
<% end %> <% end %> <% end %>