protected function configureFormFields(FormMapper $form) { $form->add('name'); $form->add('email'); $form->add('url'); $form->add('message'); $form->add('post'); }
protected function configureFormFields(FormMapper $form) { $form->add('author', array(), array('edit' => 'list')); $form->add('title'); $form->add('abstract'); $form->add('content'); $form->add('tags', array(), array('form_field_options' => array('expanded' => true, 'multiple' => true))); $form->add('enabled'); $form->add('commentsCloseAt'); $form->add('commentsEnabled'); $form->add(new \Symfony\Component\Form\ChoiceField('commentsDefaultStatus', array('choices' => Comment::getStatusCodes()))); }
protected function configureFormFields(FormMapper $form) { $form->add('name'); $form->add('enabled'); }