Sha256: fb3220fcb17eeb5494284248eee474ffc3592209b69ebdfd845ad710ad563e1a

Contents?: true

Size: 857 Bytes

Versions: 30

Compression:

Stored size: 857 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',
    refine__add_previous_criterion_id_value: (criteria.last.position unless is_disabled)
  }) do %>

  <%= tag.div(
    class: class_names(
      "refine-add-and" => true,
      "refine-add-disabled" => is_disabled
    ),
    style: "transition: all .15s ease",
    data: {action: ("click->refine--add#criterion" unless is_disabled)},
    title: (t("refine.inline.filters.criteria_limit", criteria_limit: criteria_limit) if is_disabled)

  ) do %>
    <span class="refine-add-button-text"><%= t("refine.refine_blueprints.add_and.add_and") %></span><i class="refine-add-icon fal fa-plus"></i>
  <% end %>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

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