Sha256: bc40c071ba13289e5ba584fd17b850d53c282b0b1e1a563eaf603cf12cd1baf9

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 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) %>">
    <span class="icon material-icons-outlined refine--icon-sm">add</span>
    <span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></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">
      <span class="icon material-icons-outlined refine--icon-sm">add</span>
      <span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
    </button>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refine-rails-2.11.1 app/views/refine/inline/filters/_and_button.html.erb