Commit 847fafb0372ca518a4fd3b0fd2c42476cf8351d5
1 parent
7c50714860
Exists in
master
validado los nuevos campos obligatorios de area y linea de investigacion
Showing
1 changed file
with
14 additions
and
7 deletions
Show diff stats
src/AppBundle/Form/UserType.php
| @@ -96,9 +96,11 @@ class UserType extends AbstractType | @@ -96,9 +96,11 @@ class UserType extends AbstractType | ||
| 96 | 96 | ||
| 97 | 97 | ||
| 98 | ->add('lineas_investigacion', EntityType::class, array( | 98 | ->add('lineas_investigacion', EntityType::class, array( |
| 99 | - 'label' => false, | 99 | + 'label' => false, |
| 100 | + 'constraints' => array( | ||
| 101 | + new NotBlank(), | ||
| 102 | + ), | ||
| 100 | 'placeholder' => 'Seleccione Área y Línea de Investigación', | 103 | 'placeholder' => 'Seleccione Área y Línea de Investigación', |
| 101 | - 'required' => true, | ||
| 102 | 'class' => 'AppBundle:LineasInvestigacion', | 104 | 'class' => 'AppBundle:LineasInvestigacion', |
| 103 | 105 | ||
| 104 | 'choice_label' => 'getNombre', | 106 | 'choice_label' => 'getNombre', |
| @@ -106,16 +108,18 @@ class UserType extends AbstractType | @@ -106,16 +108,18 @@ class UserType extends AbstractType | ||
| 106 | )) | 108 | )) |
| 107 | 109 | ||
| 108 | ->add('titulo_trabajo', TextType::class, array( | 110 | ->add('titulo_trabajo', TextType::class, array( |
| 109 | - 'label' => 'Título del Trabajo de Investigación', | ||
| 110 | - 'required' => true, | 111 | + 'label' => 'Título del Trabajo de Investigación', |
| 112 | + 'constraints' => array( | ||
| 113 | + new NotBlank(), | ||
| 114 | + ) | ||
| 111 | )) | 115 | )) |
| 112 | 116 | ||
| 113 | - | ||
| 114 | - | 117 | + |
| 115 | ->add('oposicion', CheckboxType::class, array( | 118 | ->add('oposicion', CheckboxType::class, array( |
| 116 | 'label' => '¿Tiene Concurso de Oposición?', | 119 | 'label' => '¿Tiene Concurso de Oposición?', |
| 117 | 'required' => false, | 120 | 'required' => false, |
| 118 | )) | 121 | )) |
| 122 | + | ||
| 119 | ->add('escala', EntityType::class, array( | 123 | ->add('escala', EntityType::class, array( |
| 120 | 'label' => false, | 124 | 'label' => false, |
| 121 | 'placeholder' => 'Seleccione escala a la que concurso', | 125 | 'placeholder' => 'Seleccione escala a la que concurso', |
| @@ -338,7 +342,10 @@ class UserType extends AbstractType | @@ -338,7 +342,10 @@ class UserType extends AbstractType | ||
| 338 | 342 | ||
| 339 | ->add('send', SubmitType::class, array( | 343 | ->add('send', SubmitType::class, array( |
| 340 | 'label' => 'Formalizar Adscripción ante el CEA', | 344 | 'label' => 'Formalizar Adscripción ante el CEA', |
| 341 | - 'attr' => array('class' => 'btn btn-success btn-block') | 345 | + 'attr' => array( |
| 346 | + 'class' => 'btn btn-success btn-block', | ||
| 347 | + 'data-loading-text' => "<i class='fa fa-circle-o-notch fa-spin'></i> Procesando Solicitud..." | ||
| 348 | + ) | ||
| 342 | )) | 349 | )) |
| 343 | 350 | ||
| 344 | 351 |