Commit e1ce12c4c26d90c07d6a7a4fe1cbf6e779a7294c

Authored by Wilmer Ramones
1 parent 6e00750d2d
Exists in master

añadido la actividad docente a la plantilla del formulario de solicitud del PIDA

Showing 1 changed file with 21 additions and 17 deletions   Show diff stats
src/AppBundle/Form/PidaType.php
... ... @@ -9,46 +9,50 @@
9 9  
10 10 namespace AppBundle\Form;
11 11  
12   -use Symfony\Component\Validator\Constraints\File;
13   -use Symfony\Component\Validator\Constraints\NotBlank;
14   -
15 12 use Symfony\Component\Form\AbstractType;
16 13 use Symfony\Component\Form\FormBuilderInterface;
17   -use Symfony\Component\Form\Extension\Core\Type\TextType;
18   -use Symfony\Component\Form\Extension\Core\Type\BirthdayType;
19   -use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
20   -use Symfony\Component\Form\Extension\Core\Type\FileType;
21 14 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
22 15  
23 16 use Symfony\Bridge\Doctrine\Form\Type\EntityType;
24   -use Doctrine\ORM\EntityRepository;
25 17  
26 18 class PidaType extends AbstractType
27 19 {
28 20 public function buildForm(FormBuilderInterface $builder, array $options)
29 21 {
30 22 $builder
31   -
32   -
33   - ->add('plan_historico_nacional_estrategico', EntityType::class, array(
  23 +
  24 + ->add('plan_historico_nacional_estrategico', EntityType::class, array(
34 25 'label' => false,
35 26 'attr' => array(
36 27 'class' => 'select2'
37 28 ),
38 29  
39 30 'placeholder' => 'Seleccione Plan Nacional que se relaciona con su Actividad PIDA',
40   - 'required' => false,
  31 + 'required' => true,
41 32 'class' => 'AppBundle:PlanHistoricoNacionalEstrategico',
42 33 'choice_label' => 'getNombre',
43 34 'group_by' => 'getIdPlanHistoricoNacional'
44 35  
45   - ))
  36 + ))
46 37  
47   -
48   -
49   -
50   -
  38 + ->add('actividad_docente', EntityType::class, array(
  39 + 'label' => false,
  40 + 'attr' => array(
  41 + 'class' => 'select2'
  42 + ),
  43 +
  44 + 'placeholder' => '¿Bajo cúal actividad docente está enmarcado dicho objetivo?',
  45 + 'required' => true,
  46 + 'class' => 'AppBundle:ActividadDocente',
  47 + 'choice_label' => 'getNombre'
51 48  
  49 + ))
  50 +
  51 +
  52 + ->add('send', SubmitType::class, array(
  53 + 'label' => 'Enviar Actividad PIDA',
  54 + 'attr' => array('class' => 'btn btn-success btn-block')
  55 + ))
52 56  
53 57 ;
54 58  
... ...