Example #1
0
 public function buildForm(FormBuilder $builder, array $options)
 {
     $builder->add('name', 'text', array('label' => 'graph.name', 'required' => true))->add('description', 'textarea', array('label' => 'graph.description', 'required' => false))->add('graphtype', 'choice', array('choices' => Graph::getGraphTypes(), 'required' => true, 'multiple' => false, 'expanded' => true, 'label' => 'graph.graphtype'))->add('columns', 'hidden');
 }