lib/wice/helpers/bs_calendar_helpers.rb
def date_calendar_bs(calendar_data)  #:nodoc:
      placeholder =
        if calendar_data.the_other_datepicker_id_to
          I18n.t("wice_grid.date_selector_tooltip_from")
        else
          I18n.t("wice_grid.date_selector_tooltip_to")
        end

      text_field_tag_options = {
          :id                   => calendar_data.dom_id,
          'data-provide'        => 'datepicker',
          'data-date-language'  => I18n.locale,
          'data-date-autoclose' => true,
          'data-date-format'    => Wice::ConfigurationProvider.value_for(:DATE_FORMAT_BOOTSTRAP),
          'placeholder'         => placeholder
      }

      text_field_tag_options['class'] = 'form-control input-sm'

      if Rails.env.development?
        text_field_tag_options['class'] += ' check-for-bsdatepicker'
      end

      if calendar_data.fire_event
        text_field_tag_options['data-close-calendar-event-name'] = calendar_data.close_calendar_event_name
      end

      if calendar_data.the_other_datepicker_id_to
        text_field_tag_options['data-the-other-bsdatepicker-id-to'] = calendar_data.the_other_datepicker_id_to
      end

      if calendar_data.the_other_datepicker_id_from
        text_field_tag_options['data-the-other-bsdatepicker-id-from'] = calendar_data.the_other_datepicker_id_from
      end

      date_picker = text_field_tag(calendar_data.name, calendar_data.date_string, text_field_tag_options)

      "<div id=\"#{calendar_data.datepicker_placeholder_id}\">#{date_picker}</div>"
    end
# A struct containing all data for rendering a calendar
A struct containing all data for rendering a calendar
A struct containing all data for rendering a calendar
def date_calendar_bs(calendar_data)  
      placeholder =
        if calendar_data.the_other_datepicker_id_to
          I18n.t("wice_grid.date_selector_tooltip_from")
        else
          I18n.t("wice_grid.date_selector_tooltip_to")
        end
      text_field_tag_options = {
          :id                   => calendar_data.dom_id,
          'data-provide'        => 'datepicker',
          'data-date-language'  => I18n.locale,
          'data-date-autoclose' => true,
          'data-date-format'    => Wice::ConfigurationProvider.value_for(:DATE_FORMAT_BOOTSTRAP),
          'placeholder'         => placeholder
      }
      text_field_tag_options['class'] = 'form-control input-sm'
      if Rails.env.development?
        text_field_tag_options['class'] += ' check-for-bsdatepicker'
      end
      if calendar_data.fire_event
        text_field_tag_options['data-close-calendar-event-name'] = calendar_data.close_calendar_event_name
      end
      if calendar_data.the_other_datepicker_id_to
        text_field_tag_options['data-the-other-bsdatepicker-id-to'] = calendar_data.the_other_datepicker_id_to
      end
      if calendar_data.the_other_datepicker_id_from
        text_field_tag_options['data-the-other-bsdatepicker-id-from'] = calendar_data.the_other_datepicker_id_from
      end
      date_picker = text_field_tag(calendar_data.name, calendar_data.date_string, text_field_tag_options)
      "<div id=\"#{calendar_data.datepicker_placeholder_id}\">#{date_picker}</div>"
    end
def date_calendar_bs ( calendar_data ) placeholder = if calendar_data . the_other_datepicker_id_to I18n . t ( "wice_grid.date_selector_tooltip_from" ) else I18n . t ( "wice_grid.date_selector_tooltip_to" ) end text_field_tag_options = { :id => calendar_data . dom_id , 'data-provide' => 'datepicker' , 'data-date-language' => I18n . locale , 'data-date-autoclose' => true , 'data-date-format' => Wice :: ConfigurationProvider . value_for ( :DATE_FORMAT_BOOTSTRAP ) , 'placeholder' => placeholder } text_field_tag_options [ 'class' ] = 'form-control input-sm' if Rails . env . development? text_field_tag_options [ 'class' ] += ' check-for-bsdatepicker' end if calendar_data . fire_event text_field_tag_options [ 'data-close-calendar-event-name' ] = calendar_data . close_calendar_event_name end if calendar_data . the_other_datepicker_id_to text_field_tag_options [ 'data-the-other-bsdatepicker-id-to' ] = calendar_data . the_other_datepicker_id_to end if calendar_data . the_other_datepicker_id_from text_field_tag_options [ 'data-the-other-bsdatepicker-id-from' ] = calendar_data . the_other_datepicker_id_from end date_picker = text_field_tag ( calendar_data . name , calendar_data . date_string , text_field_tag_options ) "<div id=\"#{calendar_data.datepicker_placeholder_id}\">#{date_picker}</div>" end
A struct containing all data for rendering a calendar
A struct containing all data for rendering a calendar
#:nodoc:
calendar_data