From 702eec54f6776189b1b0d51332450b9692a016e6 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Thu, 9 Mar 2017 08:40:55 -0400 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20el=20boton=20que=20avisa=20que?= =?UTF-8?q?=20est=C3=A1=20cargando=20y=20cambiada=20la=20posici=C3=B3n=20d?= =?UTF-8?q?e=20solicitar=20el=20nombre=20del=20NAI=20justo=20despues=20del?= =?UTF-8?q?=20documento=20de=20socializaci=C3=B3n=20del=20NAi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppBundle/Form/AscensoType.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/AppBundle/Form/AscensoType.php b/src/AppBundle/Form/AscensoType.php index 9310d06..1f942ed 100644 --- a/src/AppBundle/Form/AscensoType.php +++ b/src/AppBundle/Form/AscensoType.php @@ -99,6 +99,15 @@ class AscensoType extends AbstractType )) ) )) + ->add('nombreNucleo', TextType::class, array( + 'label' => 'Nombre del Núcleo al cual pertenece', + + 'required' => true, + 'constraints' => array( + new NotBlank(), + ) + + )) ->add('tipoTrabajoInvestigacion', ChoiceType::class, array( 'placeholder' => 'Seleccione el Tipo de Trabajo de Investigación', 'choices' => array( @@ -154,6 +163,7 @@ class AscensoType extends AbstractType 'label' => 'Digital Trabajo de investigación / Tesis', 'required' => true, 'constraints' => array( + new NotBlank(), new File(array( 'maxSize' => '1024K', 'mimeTypes' => [ @@ -221,19 +231,12 @@ class AscensoType extends AbstractType )) ) )) - ->add('nombreNucleo', TextType::class, array( - 'label' => 'Nombre del Núcleo al cual pertenece', - - 'required' => true, - 'constraints' => array( - new NotBlank(), - ) - - )) ->add('send', SubmitType::class, array( 'label' => 'Crear Solicitud de Ascenso', - 'attr' => array('class' => 'btn btn-success btn-block'), - 'data-loading-text' => " Procesando Solicitud..." + 'attr' => array( + 'class' => 'btn btn-success btn-block', + 'data-loading-text' => " Procesando Solicitud..." + ), )); -- 2.0.0