Sha256: 147524b35b1eba1c476ae4a071a94d04913cad8b9b462ab0990a7d2f971cff7d

Contents?: true

Size: 1.33 KB

Versions: 11

Compression:

Stored size: 1.33 KB

Contents

<%
  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 %>
      <div class="refine--filter-label">
        <%= t('refine.inline.filters.filter') %>: 
      </div>
      <div class="refine--groups-wrapper">
        <% groups.each.with_index do |group, i| %>
          <% unless i == 0 %>
            <div class="refine--group-join"><%= t("refine.inline.filters.or") %></div>
          <% end %>

          <%= render "refine/inline/filters/group", group: group %>
        <% end %>

        <div class="refine--group">
          <div class="refine--group-conditions-wrapper">
            <%= render "refine/inline/filters/or_button", position: @refine_filter.blueprint.length %>
          </div>
        </div>
        <%= render "refine/inline/filters/save_button" %>
        
      </div>
    <% end %>
  <% end %>
<% end %>




Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refine-rails-2.11.0 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.10.1 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.10.0 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.14 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.13 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.12 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.11 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.10 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.9 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.8 app/views/refine/inline/filters/_show.html.erb
refine-rails-2.9.7 app/views/refine/inline/filters/_show.html.erb