Module: Noventius::FilterWrappers

Included in:
FiltersHelper
Defined in:
app/helpers/concerns/noventius/filter_wrappers.rb

Constant Summary collapse

DEFAULT_CHECK_BOX_VALUE =
'1'
DEFAULT_RADIO_BUTTON_VALUE =
false

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 8

def self.included(base)
  base.extend self
end

Instance Method Details

#check_box_filter_tag(name, value: DEFAULT_CHECK_BOX_VALUE, checked: false, options: {}) ⇒ Object



12
13
14
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 12

def check_box_filter_tag(name, value: DEFAULT_CHECK_BOX_VALUE, checked: false, options: {})
  check_box_tag(name, value, checked, options)
end

#color_filter_tag(name, value: nil, options: {}) ⇒ Object



16
17
18
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 16

def color_filter_tag(name, value: nil, options: {})
  color_field_tag(name, value, options)
end

#date_filter_tag(name, value: nil, options: {}) ⇒ Object



20
21
22
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 20

def date_filter_tag(name, value: nil, options: {})
  date_field_tag(name, value, options)
end

#datetime_filter_tag(name, value: nil, options: {}) ⇒ Object



24
25
26
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 24

def datetime_filter_tag(name, value: nil, options: {})
  datetime_field_tag(name, value, options)
end

#email_filter_tag(name, value: nil, options: {}) ⇒ Object



28
29
30
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 28

def email_filter_tag(name, value: nil, options: {})
  datetime_field_tag(name, value, options)
end

#month_filter_tag(name, value: nil, options: {}) ⇒ Object



32
33
34
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 32

def month_filter_tag(name, value: nil, options: {})
  month_field_tag(name, value, options)
end

#number_filter_tag(name, value: nil, options: {}) ⇒ Object



36
37
38
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 36

def number_filter_tag(name, value: nil, options: {})
  number_field_tag(name, value, options)
end

#phone_filter_tag(name, value: nil, options: {}) ⇒ Object



40
41
42
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 40

def phone_filter_tag(name, value: nil, options: {})
  phone_field_tag(name, value, options)
end

#radio_button_filter_tag(name, value: DEFAULT_RADIO_BUTTON_VALUE, checked: false, options: {}) ⇒ Object



44
45
46
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 44

def radio_button_filter_tag(name, value: DEFAULT_RADIO_BUTTON_VALUE, checked: false, options: {})
  radio_button_tag(name, value, checked, options)
end

#range_filter_tag(name, value: nil, options: {}) ⇒ Object



48
49
50
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 48

def range_filter_tag(name, value: nil, options: {})
  range_field_tag(name, value, options)
end

#search_filter_tag(name, value: nil, options: {}) ⇒ Object



52
53
54
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 52

def search_filter_tag(name, value: nil, options: {})
  search_field_tag(name, value, options)
end

#select_filter_tag(name, option_tags: nil, options: {}) ⇒ Object



56
57
58
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 56

def select_filter_tag(name, option_tags: nil, options: {})
  select_tag(name, option_tags, options)
end

#telephone_filter_tag(name, value: nil, options: {}) ⇒ Object



60
61
62
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 60

def telephone_filter_tag(name, value: nil, options: {})
  text_field_tag(name, value, options)
end

#text_area_filter_tag(name, content: nil, options: {}) ⇒ Object



64
65
66
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 64

def text_area_filter_tag(name, content: nil, options: {})
  text_area_tag(name, content, options)
end

#text_filter_tag(name, value: nil, options: {}) ⇒ Object



68
69
70
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 68

def text_filter_tag(name, value: nil, options: {})
  text_field_tag(name, value, options)
end

#time_filter_tag(name, value: nil, options: {}) ⇒ Object



72
73
74
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 72

def time_filter_tag(name, value: nil, options: {})
  time_field_tag(name, value, options)
end

#url_filter_tag(name, value: nil, options: {}) ⇒ Object



76
77
78
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 76

def url_filter_tag(name, value: nil, options: {})
  url_field_tag(name, value, options)
end

#week_filter_tag(name, value: nil, options: {}) ⇒ Object



80
81
82
# File 'app/helpers/concerns/noventius/filter_wrappers.rb', line 80

def week_filter_tag(name, value: nil, options: {})
  week_field_tag(name, value, options)
end