Class: Wice::ViewColumnDate

Inherits:
ViewColumnDatetime show all
Defined in:
lib/view_columns/view_column_date.rb

Overview

:nodoc:

Constant Summary collapse

@@datetime_chunk_names =
%w(year month day)

Constants inherited from ViewColumn

Wice::ViewColumn::FIELDS

Instance Attribute Summary

Attributes inherited from ViewColumn

#cell_rendering_block, #contains_a_text_input, #css_class, #custom_filter, #grid, #main_table, #model, #table_name

Instance Method Summary collapse

Methods inherited from ViewColumnDatetime

#has_auto_reloading_calendar?, #name_and_id_from_options, #prepare_for_calendar_filter, #prepare_for_standard_filter, #render_calendar_filter_internal, #render_filter_internal, #yield_declaration_of_column_filter

Methods included from JsCalendarHelpers

#date_calendar_jquery

Methods inherited from ViewColumn

#attribute_name_fully_qualified_for_all_but_main_table_columns, #auto_reloading_input_with_negation_checkbox?, #capable_of_hosting_filter_related_icons?, #config, #controller, #detachness, #filter_shown?, #filter_shown_in_main_table?, #form_parameter_name_id_and_query, #fully_qualified_attribute_name, get_column_processor, #has_auto_reloading_calendar?, #has_auto_reloading_input?, #has_auto_reloading_select?, #initialize, load_column_processors, #render_filter, #render_filter_internal, #table_alias_or_table_name, #yield_declaration, #yield_declaration_of_column_filter

Constructor Details

This class inherits a constructor from Wice::ViewColumn

Instance Method Details

#render_standard_filter_internal(params) ⇒ Object

:nodoc:



8
9
10
11
12
13
# File 'lib/view_columns/view_column_date.rb', line 8

def render_standard_filter_internal(params) #:nodoc:
  '<div class="date-filter">' +
  select_date(params[:fr], {:include_blank => true, :prefix => @name1, :id => @dom_id}) + '<br/>' +
  select_date(params[:to], {:include_blank => true, :prefix => @name2, :id => @dom_id2}) +
  '</div>'
end