src/Form/ProjectCollegeType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\FormBuilderInterface;
  5. /**
  6.  *
  7.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  8.  */
  9. class ProjectCollegeType extends AbstractType
  10. {
  11.     public function buildForm(FormBuilderInterface $builder, array $options)
  12.     {
  13.         $builder->add('name'null, [
  14.             'label' => '名称',
  15.             'disabled' => true
  16.         ])
  17.             ->add('category'null, [
  18.             'label' => '类别',
  19.             'disabled' => true
  20.         ])
  21.             ->add('level'null, [
  22.             'label' => '级别',
  23.             'disabled' => true
  24.         ])
  25.             ->add('collegeSort'null, [
  26.             'label' => '学院排序',
  27.             'required' => true
  28.         ]);
  29.     }
  30. }