Sha256: 93f269b91cf432bb7419bfbe13e8683d792aa686e6682efb82837bdcb0662143
Contents?: true
Size: 597 Bytes
Versions: 19
Compression:
Stored size: 597 Bytes
Contents
module QueryReportFilterHelper def query_report_text_filter(name, value, options={}) text_field_tag name, value, options end def query_report_date_filter(name, value, options={}) text_field_tag name, value, options.merge(class: :date) end def query_report_datetime_filter(name, value, options={}) text_field_tag name, value, options.merge(class: :datetime) end def query_report_boolean_filter(name, value, options={}) concat(label_tag options[:placeholder]) select_tag name, options_for_select([['', ''], ['true', 'true'], ['false', 'false']], value) end end
Version data entries
19 entries across 19 versions & 1 rubygems