app/components/planner_command_panel.rb
# Component Symbol used to uniquely address the date-start field of the range
Component Symbol used to uniquely address the date-start field of the range
Component Symbol used to uniquely address the date - start field of the range
def configuration
    super.merge(
      :frame => true,
      :min_width => 500,
      :min_height => 35,
      :height => 35,
      :margin => '1 1 1 1',
      :fieldDefaults => {
        :msgTarget => 'side',
        :autoFitErrors => false
      },
      :layout => 'hbox',
      :items => [
        create_button_config( FAST_BACKWD_BTN_CMP_SYM, :week_plan, 'resultset_fastbkwd.png' ),
        create_button_config( BACKWARD_BTN_CMP_SYM, :week_plan, 'resultset_previous.png' ),
        {
          :fieldLabel => I18n.t(:go_to_date, :scope => [:agex_action]),
          :labelWidth => 80,
          :margin => '1 5 0 5',
          :id   => FILTERING_DATE_CMP_ID,
          :name => FILTERING_DATE_CMP_ID,
          :xtype => 'datefield',
          :vtype => 'daterange',
          :width => 180,
          :enable_key_events => true,
          :format => AGEX_FILTER_DATE_FORMAT_EXTJS,
          :value => super[ FILTERING_DATE_CMP_SYM ]
        },
        create_button_config( CURRENT_BTN_CMP_SYM, :week_plan, 'calendar_view_week.png' ),
        create_button_config( FORWARD_BTN_CMP_SYM, :week_plan, 'resultset_next.png' ),
        create_button_config( FAST_FWD_BTN_CMP_SYM, :week_plan, 'resultset_fastfwd.png' ),
        {
          :xtype => 'container',
          :width => 30
        },
        create_button_config( SCHEDULE_ADD_BTN_CMP_SYM, :week_plan, 'calendar_add.png' ),
        create_button_config( SCHEDULE_VIEW_BTN_CMP_SYM, :week_plan, 'calendar_edit.png' ),
        create_button_config( INCOME_ANALYSIS_BTN_CMP_SYM, :week_plan, 'money.png' )
      ]
    )
  end
def configuration super . merge ( :frame => true , :min_width => 500 , :min_height => 35 , :height => 35 , :margin => '1 1 1 1' , :fieldDefaults => { :msgTarget => 'side' , :autoFitErrors => false } , :layout => 'hbox' , :items => [ create_button_config ( FAST_BACKWD_BTN_CMP_SYM , :week_plan , 'resultset_fastbkwd.png' ) , create_button_config ( BACKWARD_BTN_CMP_SYM , :week_plan , 'resultset_previous.png' ) , { :fieldLabel => I18n . t ( :go_to_date , :scope => [ :agex_action ] ) , :labelWidth => 80 , :margin => '1 5 0 5' , :id => FILTERING_DATE_CMP_ID , :name => FILTERING_DATE_CMP_ID , :xtype => 'datefield' , :vtype => 'daterange' , :width => 180 , :enable_key_events => true , :format => AGEX_FILTER_DATE_FORMAT_EXTJS , :value => super [ FILTERING_DATE_CMP_SYM ] } , create_button_config ( CURRENT_BTN_CMP_SYM , :week_plan , 'calendar_view_week.png' ) , create_button_config ( FORWARD_BTN_CMP_SYM , :week_plan , 'resultset_next.png' ) , create_button_config ( FAST_FWD_BTN_CMP_SYM , :week_plan , 'resultset_fastfwd.png' ) , { :xtype => 'container' , :width => 30 } , create_button_config ( SCHEDULE_ADD_BTN_CMP_SYM , :week_plan , 'calendar_add.png' ) , create_button_config ( SCHEDULE_VIEW_BTN_CMP_SYM , :week_plan , 'calendar_edit.png' ) , create_button_config ( INCOME_ANALYSIS_BTN_CMP_SYM , :week_plan , 'money.png' ) ] ) end
Component Symbol used to uniquely address the date-start field of the range
Component Symbol used to uniquely address the date - start field of the range