Sha256: 6d0a2f3732549a04dc80c9cc54120a1b3fa5477395150d15c66d351a58ef44d8

Contents?: true

Size: 1018 Bytes

Versions: 19

Compression:

Stored size: 1018 Bytes

Contents

<% 
  criterion = Refine::Inline::Criterion.new(
    stable_id: @refine_filter.to_stable_id,
    refine_filter: @refine_filter,
    client_id: @refine_client_id,
    conjunction: "or",
    position: position
  )
%>

<% if @refine_filter.criteria_limit_reached? %>
  <button disabled class="refine--add-group-button" type="button" title="<%= t(".criteria_limit", criteria_limit: @refine_filter.criteria_limit) %>">
    <span class="icon material-icons-outlined refine--icon-sm">add</span>
    <span class="refine--add-group-button-label"><%= t(".group") %></span>
  </button>
<% else %>
  <%= render "refine/inline/filters/popup",
    frame_id: dom_id(criterion),
    src: refine_inline_criteria_path(criterion.to_params) do
  %>
    <button class="refine--add-group-button" type="button" data-action="click->refine--popup#show">
      <span class="icon material-icons-outlined refine--icon-sm">add</span>
      <span class="refine--add-group-button-label"><%= t(".group") %></span>
    </button>
  <% end %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
refine-rails-2.11.1 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.11.0 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.10.1 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.10.0 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.14 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.13 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.12 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.11 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.10 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.9 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.8 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.7 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.6 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.5 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.4 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.3 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.2 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.1 app/views/refine/inline/filters/_or_button.html.erb
refine-rails-2.9.0 app/views/refine/inline/filters/_or_button.html.erb