Sha256: 6ab34ed46ba6700d6da5ffb29492f6ea4f2d36e5f29d10731a6cc061f8eb6d3f
Contents?: true
Size: 603 Bytes
Versions: 7
Compression:
Stored size: 603 Bytes
Contents
module QueryReportEngineFilterHelper 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
7 entries across 7 versions & 1 rubygems