Sha256: 87339a5cacb8c3bc532d5c4f9e05b56f368b690a02a1f86f3b7e7dfc1a88b349

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

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
  )
  use_modal ||= false
  fill_modal ||= false
  src = use_modal ? index_advanced_refine_inline_criteria_path(criterion.to_params.merge(fill_modal: fill_modal)) : refine_inline_criteria_path(criterion.to_params)
%>

 <%= render "refine/inline/filters/modal_or_popup",
    frame_id: dom_id(criterion),
    use_modal: use_modal,
    fill_modal: fill_modal,
    src: src do
  %>
  <button class="refine--add-condition-button refine--add-first-condition-button" href="#" data-action="click->refine--popup#show click->refine--modal#open" type="button">
    <span><%= t(".filter") %></span>
    <span class="icon material-icons-outlined refine--icon-sm">add</span>
  </button>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refine-rails-2.11.8 app/views/refine/inline/filters/_add_first_condition_button.html.erb
refine-rails-2.11.6 app/views/refine/inline/filters/_add_first_condition_button.html.erb