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_html ⇒ Object
13 14 15 16 17 18 |
# File 'lib/adminterface/extensions/inputs/filters/base/search_method_select.rb', line 13 def fields_html template.content_tag :div, class: "row g-3" do template.content_tag(:div, select_html, class: "col") + template.content_tag(:div, input_html, class: "col") end end |
#select_html ⇒ Object
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.(, current_filter), class: "form-select" ) end |
#to_html ⇒ Object
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 |