/**
  * Change date widgets to jquery rich date widget
  *
  * @param string $name
  * @param sfForm $form 
  * @return void
  */
 public static function changeDateWidget($name, sfForm $form)
 {
     sfSympalToolkit::useJavascript('jquery.ui.js');
     sfSympalToolkit::useStylesheet('jquery.ui.css');
     $widgetSchema = $form->getWidgetSchema();
     $widgetSchema[$name] = new sfWidgetFormJQueryDate();
 }