Module: LotusAdmin::FilterHelpers

Defined in:
app/helpers/lotus_admin/filter_helpers.rb

Instance Method Summary collapse

Instance Method Details

#filter_search_btnObject



15
16
17
18
19
20
21
# File 'app/helpers/lotus_admin/filter_helpers.rb', line 15

def filter_search_btn
  return unless filters_enabled?

  link_to '#', class: LotusAdmin.configuration.filter_search_btn_css_classes, data: { toggle: :modal, target: '#filter-modal' } do
    fa_icon(:search)
  end
end

#render_filter_modalObject



3
4
5
6
7
# File 'app/helpers/lotus_admin/filter_helpers.rb', line 3

def render_filter_modal
  return unless filters_enabled?

  render 'lotus_admin/shared/filters/modal'
end

#render_filters_results_bannerObject



9
10
11
12
13
# File 'app/helpers/lotus_admin/filter_helpers.rb', line 9

def render_filters_results_banner
  return unless apply_filters?

  render 'lotus_admin/shared/filters/results_banner'
end