diff --git a/src/AppBundle/Form/SolicitarType.php b/src/AppBundle/Form/SolicitarType.php new file mode 100644 index 0000000..b9baf58 --- /dev/null +++ b/src/AppBundle/Form/SolicitarType.php @@ -0,0 +1,86 @@ +add('nombres', TextType::class, array( + 'attr' => array('placeholder' => 'Nombres...'), + 'constraints' => array( + new NotBlank(), + new Length(array('min' => 3)), + ) + )) + ->add('apellidos', TextType::class, array( + 'attr' => array('placeholder' => 'Apellidos...'), + 'constraints' => array( + new NotBlank(), + new Length(array('min' => 3)), + ) + )) + ->add('cedula', NumberType::class, array( + 'attr' => array('placeholder' => 'Cédula o Pasaporte...'), + 'constraints' => array( + new NotBlank(), + new Length(array('min' => 7)), + new Length(array('max' => 10)), + ), + 'label' => 'Cédula' + )) + ->add('correo', EmailType::class, array( + 'attr' => array('placeholder' => 'Dirección de Correo...'), + 'constraints' => array( + new NotBlank(), + new Email() + ) + )) + + ->add('eje', EntityType::class, array( + 'placeholder' => 'Seleccione el Eje al Cual está Adscrito', + 'class' => 'AppBundle:Eje', + 'choice_label' => 'getNombre', + )) + ->add('send', SubmitType::class, array('label' => 'Enviar Solicitud')); + } + + + + + +// /** +// * @param OptionsResolver $resolver +// */ +// public function configureOptions(OptionsResolver $resolver) +// { +// $resolver->setDefaults(array( +// 'data_class' => 'AppBundle\Entity\Usuarios' +// )); +// } +} \ No newline at end of file