<?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
/**
*
* @author wendell.zheng <wxzheng@ustc.edu.cn>
*/
class SuggestionType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('content', TextareaType::class, [
'label' => '问题与建议',
'attr' => [
'rows' => 10
],
'required' => true
]);
}
}