Module: Adminterface::Extensions::Inputs::Filters::Base::SearchMethodSelect

Defined in:
lib/adminterface/extensions/inputs/filters/base/search_method_select.rb

Instance Method Summary collapse

Instance Method Details

#fields_htmlObject



13
14
15
16
17
18
# File 'lib/adminterface/extensions/inputs/filters/base/search_method_select.rb', line 13

def fields_html
  template. :div, class: "row g-3" do
    template.(:div, select_html, class: "col") +
      template.(:div, input_html, class: "col")
  end
end

#select_htmlObject



20
21
22
23
24
25
26
# File 'lib/adminterface/extensions/inputs/filters/base/search_method_select.rb', line 20

def select_html
  template.select_tag(
    "",
    template.options_for_select(filter_options, current_filter),
    class: "form-select"
  )
end

#to_htmlObject



7
8
9
10
11
# File 'lib/adminterface/extensions/inputs/filters/base/search_method_select.rb', line 7

def to_html
  input_wrapping do
    label_html << fields_html
  end
end