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

Version Path
query_report-1.0.21 app/helpers/query_report_filter_helper.rb
query_report-1.0.20 app/helpers/query_report_filter_helper.rb
query_report-1.0.19 app/helpers/query_report_filter_helper.rb
query_report-1.0.18 app/helpers/query_report_filter_helper.rb
query_report-1.0.17 app/helpers/query_report_filter_helper.rb
query_report-1.0.16 app/helpers/query_report_filter_helper.rb
query_report-1.0.15 app/helpers/query_report_filter_helper.rb
query_report-1.0.14 app/helpers/query_report_filter_helper.rb
query_report-1.0.13 app/helpers/query_report_filter_helper.rb
query_report-1.0.12 app/helpers/query_report_filter_helper.rb
query_report-1.0.11 app/helpers/query_report_filter_helper.rb
query_report-1.0.10 app/helpers/query_report_filter_helper.rb
query_report-1.0.9 app/helpers/query_report_filter_helper.rb
query_report-1.0.8 app/helpers/query_report_filter_helper.rb
query_report-1.0.7 app/helpers/query_report_filter_helper.rb
query_report-1.0.6 app/helpers/query_report_filter_helper.rb
query_report-1.0.5 app/helpers/query_report_filter_helper.rb
query_report-1.0.4 app/helpers/query_report_filter_helper.rb
query_report-1.0.3 app/helpers/query_report_filter_helper.rb