class Engine2::SearchTemplates

Public Class Methods

bsselect_picker(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 210
def bsselect_picker options = {}
    options.merge({
        template: options[:multiple] ? "search_fields/bsmselect_picker" : "search_fields/bsselect_picker",
        animation: BS_ANIMATION
    })
end
checkbox_buttons() click to toggle source

def checkbox_search true_v = “1”, false_v = “0”

{
    template: "search_fields/checkbox2",
    true_value: true_v,
    false_value: false_v
}

end

# File lib/engine2/templates.rb, line 236
def checkbox_buttons
    {template: 'search_fields/checkbox_buttons'}
end
date_picker(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 189
def date_picker options = {}
    options.merge({
        template: "search_fields/date",
        animation: BS_ANIMATION
    })
end
date_range(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 182
def date_range options = {}
    options.merge({
        template: "search_fields/date_range",
        animation: BS_ANIMATION
    })
end
decimal_date() click to toggle source
# File lib/engine2/templates.rb, line 259
def decimal_date
    {template: "search_fields/decimal_date_range", animation: BS_ANIMATION}
end
input_text() click to toggle source
# File lib/engine2/templates.rb, line 178
def input_text
    {template: "search_fields/input_text"}
end
integer() click to toggle source
# File lib/engine2/templates.rb, line 200
def integer
    {template: "search_fields/integer"}
end
integer_range() click to toggle source
# File lib/engine2/templates.rb, line 196
def integer_range
    {template: "search_fields/integer_range"}
end
list_bsselect(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 244
def list_bsselect options = {}
    options.merge({
        template: options[:multiple] ? "search_fields/list_bsmselect" : "search_fields/list_bsselect",
        animation: BS_ANIMATION
    })
end
list_buttons() click to toggle source
# File lib/engine2/templates.rb, line 251
def list_buttons
    {template: "search_fields/list_buttons"}
end
list_mbuttons() click to toggle source
# File lib/engine2/templates.rb, line 255
def list_mbuttons
    {template: "search_fields/list_mbuttons"}
end
list_select() click to toggle source
# File lib/engine2/templates.rb, line 240
def list_select
    {template: "search_fields/list_select"}
end
scaffold_picker(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 217
def scaffold_picker options = {}
    options.merge({
        # template: options[:multiple] ? "search_fields/scaffold_picker" : "search_fields/scaffold_picker"
        template: "search_fields/scaffold_picker"
    })
end
select_picker(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 204
def select_picker options = {}
    options.merge({
        template: "search_fields/select_picker"
    })
end
typeahead_picker(options = {}) click to toggle source
# File lib/engine2/templates.rb, line 224
def typeahead_picker options = {}
    {template: "search_fields/typeahead_picker", limit: 10, min_length: 0, animation: BS_ANIMATION}.merge(options)
end