diff --git a/app/Resources/views/solicitudes/index.html.twig b/app/Resources/views/solicitudes/index.html.twig index 07356eb..23bc89f 100644 --- a/app/Resources/views/solicitudes/index.html.twig +++ b/app/Resources/views/solicitudes/index.html.twig @@ -9,6 +9,10 @@ {% for message in app.session.flashBag.get('notice') %}
{{ message }}
{%endfor %} + + {% for message in app.session.flashBag.get('success') %} +
{{ message }}
+ {%endfor %} {% for message in app.session.flashBag.get('danger') %}
{{ message }}
diff --git a/src/AppBundle/Form/PermisoSabaticoType.php b/src/AppBundle/Form/PermisoSabaticoType.php new file mode 100644 index 0000000..09d4de4 --- /dev/null +++ b/src/AppBundle/Form/PermisoSabaticoType.php @@ -0,0 +1,65 @@ +add('reconocimiento', FileType::class, array( + 'label' => 'Digital Aprobación de Escala', + 'constraints' => array( + new NotBlank(), + new File(array( + 'maxSize' => '1024K', + 'mimeTypes' => [ + 'application/pdf', + 'application/x-pdf', + 'image/png', + 'image/jpg', + 'image/jpeg' + ], + 'mimeTypesMessage' => 'Sólo se permiten extensiones png, jpeg y pdf' + )) + ) + )) + ->add('send', SubmitType::class, array( + 'label' => 'Enviar reconocimiento de Escala', + 'attr' => array( + 'class' => 'btn btn-success btn-block', + 'data-loading-text' => " Procesando Solicitud..." + ) + )) + + ; + + + } + + + + + + + +}