Sha256: 0054c97bac493325867319a6b4f238a6455ee8737d99ccbd021865ae80a575d6

Contents?: true

Size: 635 Bytes

Versions: 7

Compression:

Stored size: 635 Bytes

Contents

module QueryReportEngineFilterHelper
  def query_report_default_text_filter(name, value, options={})
    text_field_tag name, value, options
  end

  def query_report_default_date_filter(name, value, options={})
    text_field_tag name, value, options.merge(class: :date)
  end

  def query_report_default_datetime_filter(name, value, options={})
    text_field_tag name, value, options.merge(class: :datetime)
  end

  def query_report_default_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

Version Path
query_report-1.2.1 app/helpers/query_report_engine_filter_helper.rb
query_report-1.2.0 app/helpers/query_report_engine_filter_helper.rb
query_report-1.1.6 app/helpers/query_report_engine_filter_helper.rb
query_report-1.1.5 app/helpers/query_report_engine_filter_helper.rb
query_report-1.1.4 app/helpers/query_report_engine_filter_helper.rb
query_report-1.1.3 app/helpers/query_report_engine_filter_helper.rb
query_report-1.1.2 app/helpers/query_report_engine_filter_helper.rb