Ejemplo n.º 1
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('place', ChoiceType::class, array('label' => 'Place', 'choices' => AppMails::getNames(), 'attr' => array('help_text' => 'Place where the message is sent.')))->add('subject', TextType::class, array('label' => 'Subject'))->add('content', TextareaType::class, array('label' => 'Content', 'attr' => ['rows' => 20]))->add('locale', TextType::class, array('label' => 'Locale', 'attr' => array('help_text' => 'Must match one of the installed languages.')))->add('save', SubmitType::class, array('label' => 'Save'));
 }