/** * @see PointForm */ public function configure() { parent::configure(); $this->widgetSchema['place_id'] = new sfWidgetFormInputHidden(); $this->widgetSchema['fire_at'] = new sfWidgetFormInput(array(), array('class' => 'datepicker')); $this->widgetSchema['iamgoing'] = new sfWidgetFormInputCheckbox(); $this->validatorSchema['iamgoing'] = new sfValidatorBoolean(); $this->validatorSchema['title']->setOption('max_length', sfConfig::get('app_event_title_max_length', 60)); $this->useFields(array('title', 'icon', 'description', 'fire_at', 'iamgoing', 'geo_lat', 'geo_lng', 'place_id')); $this->setDefault('fire_at', date('d.m.Y H:i', strtotime('+1 hour'))); $this->widgetSchema->setNameFormat('point[%s]'); }
public function configure() { parent::configure(); }