/**
  * Configures the current widget.
  *
  * Available options:
  *
  *  * with_empty:      Whether to add the empty checkbox (true by default)
  *  * empty_label:     The label to use when using an empty checkbox
  *  * filter_template: The template to use to render the widget
  *                     Available placeholders: %date_range%, %empty_checkbox%, %empty_label%
  *
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see sfWidgetForm
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('with_empty', true);
     $this->addOption('empty_label', 'is empty');
     $this->addOption('template', 'from %from_date%<br />to %to_date%');
     $this->addOption('filter_template', '%date_range%<br />%empty_checkbox% %empty_label%');
 }
 /**
  * Configures the current widget.
  *
  * Available options:
  *
  *  * from_label:  The label for the from date widget
  *  * to_label:    The label for the to date widget
  * 
  *  * from_label_template: The template used to render label for from date widget
  *                 Available placeholders: %from_id%, %from_label%
  *  * to_label_template: The template used to render label for to date widget
  *                 Available placeholders: %to_id%, %to_label%
  * 
  *  * template:    The template to use to render the widget
  *                 Available placeholders: %from_date%, %to_date% %from_label% %to_label%
  *
  *  also see options in sfWidgetFormDateRange
  * 
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see ohrmWidgetFormDateRange
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('from_label', '');
     $this->addOption('to_label', 'to');
     $this->addOption('from_label_template', "<label for='%from_id%' class='date_range_label'>%from_label%</label>");
     $this->addOption('to_label_template', "<label>&nbsp;</label><label for='%to_id%' class='date_range_label'>%to_label%</label>");
     $this->addOption('use_separate_containers', true);
     $this->addOption('container_separator', '</li><li>');
     $this->addOption('template', '%from_label% %from_date% %container_separator%%to_label% %to_date%');
 }