Sha256: 4e5242bb619fefddf9ac7b633ff429ad029466d8498fee3ed98b7cbb873825bb

Contents?: true

Size: 784 Bytes

Versions: 30

Compression:

Stored size: 784 Bytes

Contents

<% 
  is_disabled = @refine_filter_builder.refine_filter.criteria_limit_reached?
  criteria_limit = @refine_filter_builder.refine_filter.criteria_limit
%>

<%= tag.div(
  class: "refine-add-container",
  data: {controller: 'refine--add'}) do %>

  <%= tag.div(
    class: class_names(
      "refine-add-group" => true,
      "refine-add-disabled" => is_disabled
    ),
    data: {action: ("click->refine--add#group" unless is_disabled)},
    title: (t("refine.inline.filters.criteria_limit", criteria_limit: criteria_limit) if is_disabled)
  ) do %>
    <% if @refine_filter_query.grouped_criteria.any? %>
      <%= t("refine.refine_blueprints.add_group.add_or") %>
    <% else %>
      <%= t("refine.refine_blueprints.add_group.create_filter") %>
    <% end %>
  <% end %>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.12 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.11 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.10 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.9 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.8 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.6 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.5 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.4 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.3 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.2 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.1 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.11.0 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.10.1 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.10.0 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.9.14 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.9.13 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.9.12 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.9.11 app/views/refine/blueprints/_add_group.html.erb
refine-rails-2.9.10 app/views/refine/blueprints/_add_group.html.erb