Exemplo n.º 1
0
 public function configure()
 {
     $this->widgetSchema['extra_fields'] = new sfWidgetFormChoice(array('choices' => ExtraFields::getFieldsByType('tickets'), 'expanded' => true, 'multiple' => true));
     $this->widgetSchema['active'] = new sfWidgetFormInputCheckbox(array(), array('value' => 1));
     $this->setDefault('active', 1);
     $this->widgetSchema['name']->setAttribute('class', 'required');
     $this->widgetSchema['sort_order']->setAttribute('size', '3');
     $this->widgetSchema->setLabels(array('sort_order' => 'Sort Order', 'background_color' => 'Background', 'default_value' => 'Default?', 'active' => 'Active?', 'extra_fields' => 'Extra Fields'));
 }