Esempio n. 1
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('name', TextType::class, array('label' => 'Name'))->add('description', TextareaType::class, array('label' => 'Description'))->add('parentProject', ChoiceType::class, array('label' => 'Parent project', 'required' => false, 'choices' => $options['projectRepo']->getFormChoices()))->add('modules', ChoiceType::class, array('label' => 'Modules', 'expanded' => true, 'multiple' => true, 'choices' => Modules::getFormEntries()))->add('areasAllowed', BooleanType::class, array('label' => 'Areas allowed?'))->add('areaRegistrationAllowed', BooleanType::class, array('label' => 'Area registration allowed?'))->add('save', SubmitType::class, array('label' => 'Save'));
 }