Sha256: 83b9b3a31c100e93f1dfd4b480f6fb2cd2bacc876f8b2844e723d526229c952a

Contents?: true

Size: 1.24 KB

Versions: 15

Compression:

Stored size: 1.24 KB

Contents

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

<% if @refine_filter.criteria_limit_reached? %>
  <button disabled class="refine--add-condition-button refine--group-last-item refine--condition-pill-end" type="button" title="<%= t(".criteria_limit", criteria_limit: @refine_filter.criteria_limit) %>">
    <% if show_label %>
      <span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
    <% end %>
    <span class="icon material-icons-outlined refine--icon-sm">add</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-condition-button refine--group-last-item refine--condition-pill-end" type="button" data-action="click->refine--popup#show">
      <% if show_label %>
        <span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
      <% end %>
      <span class="icon material-icons-outlined refine--icon-sm">add</span>
    </button>
  <% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
refine-rails-2.13.3 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.13.2 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.13.1 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.13.0 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.12.2 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.12.1 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.12.0 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.12 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.11 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.10 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.9 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.5 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.4 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.3 app/views/refine/inline/filters/_and_button.html.erb
refine-rails-2.11.2 app/views/refine/inline/filters/_and_button.html.erb