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 | 96 | |
97 | 97 | |
98 | 98 | ->add('lineas_investigacion', EntityType::class, array( |
99 | - 'label' => false, | |
99 | + 'label' => false, | |
100 | + 'constraints' => array( | |
101 | + new NotBlank(), | |
102 | + ), | |
100 | 103 | 'placeholder' => 'Seleccione Área y Línea de Investigación', |
101 | - 'required' => true, | |
102 | 104 | 'class' => 'AppBundle:LineasInvestigacion', |
103 | 105 | |
104 | 106 | 'choice_label' => 'getNombre', |
... | ... | @@ -106,16 +108,18 @@ class UserType extends AbstractType |
106 | 108 | )) |
107 | 109 | |
108 | 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 | 118 | ->add('oposicion', CheckboxType::class, array( |
116 | 119 | 'label' => '¿Tiene Concurso de Oposición?', |
117 | 120 | 'required' => false, |
118 | 121 | )) |
122 | + | |
119 | 123 | ->add('escala', EntityType::class, array( |
120 | 124 | 'label' => false, |
121 | 125 | 'placeholder' => 'Seleccione escala a la que concurso', |
... | ... | @@ -338,7 +342,10 @@ class UserType extends AbstractType |
338 | 342 | |
339 | 343 | ->add('send', SubmitType::class, array( |
340 | 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 | ... | ... |