/**
  * @see CommonForm
  */
 public function configure()
 {
     unset($this['number'], $this['due_date'], $this['closed'], $this['created_at'], $this['updated_at']);
     $this->widgetSchema['issue_date'] = new sfWidgetFormI18nJQueryDate($this->JQueryDateOptions);
     $this->widgetSchema['draft'] = new sfWidgetFormInputHidden();
     $this->widgetSchema['status'] = new sfWidgetFormChoice(array('choices' => Estimate::getStatusArray()));
     $this->widgetSchema->setNameFormat('invoice[%s]');
     $this->setDefaults(array('draft' => 0));
     parent::configure();
 }