You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: reports_helper.rb
    path of file: ./repos/onebody/app/helpers
    
    the code of the file until where you have to start completion: module ReportsHelper
  def format_dateparam(date_in, *date_if_blank)
    date_if_blank = Date.current if date_if_blank.empty?
    Date.parse_in_locale(date_in.to_s) || Date.parse_in_locale(date_if_blank.to_s)
  end

  def format_date(value)
    value.to_s(:date) if value.is_a?(Time)
  end

  def report_date_field(form, name, _value)
    content_ta
    
  def report_date_field(form, name, _value)
    content_tag(:div, class: 'input-group') do
      content_tag(:div, class: 'input-group-btn') do
        content_tag(:button, type: 'button', class: 'btn btn-info date-picker-btn') do
          icon('fa fa-calendar')
        end
      end +
        form.date_field(name, class: 'form-control')
    end
  end

  def initialize_group
    @group = Group.find(options[:group_id]) if options[:group_id].present?
  end

  def group_title(report_title)
    I18n.t(
      @group ? 'title_for_group' : 'title',
      scope: report_title,
      group: @group.try(:name)
    )
  end

  def report_group_field(form, name)
    form.collection_select name, Group.approved.order(:name), :id, :name, { prompt: t('reports.group_select') }, class: 'form-control'
  end
end