From 9ae39944af829a0a78ebdc4263c2ff56a9ce7566 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Thu, 2 Mar 2017 14:20:45 -0400 Subject: [PATCH] =?UTF-8?q?modificada=20mostrar=20la=20aprobaci=C3=B3n=20d?= =?UTF-8?q?e=20antiguedad=20con=20la=20nueva=20documentacion=20vertical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Resources/views/cea/servicios_mostar.html.twig | 138 ++++++++++++++++++--- src/AppBundle/Controller/AppController.php | 7 +- 2 files changed, 125 insertions(+), 20 deletions(-) diff --git a/app/Resources/views/cea/servicios_mostar.html.twig b/app/Resources/views/cea/servicios_mostar.html.twig index 38d78c5..79ed50c 100644 --- a/app/Resources/views/cea/servicios_mostar.html.twig +++ b/app/Resources/views/cea/servicios_mostar.html.twig @@ -2,6 +2,99 @@ {% block stylesheets %} {{ parent() }} + {% endblock %} {%block body %} @@ -15,8 +108,7 @@

Servicio número {{servicio.id}}: - {{ servicio.idRolInstitucion.idRol.idPersona.primerNombre }}, - {{ servicio.idRolInstitucion.idRol.idPersona.primerApellido }} + {{ docente }}

@@ -56,7 +148,7 @@ {% if servicio.idServicioCe.id == 1 %}
- {{ adscripcion.fechaIngreso|date('d/m/Y') }} + {{ docente.adscripcion.fechaIngreso|date('d/m/Y') }}
@@ -120,28 +212,38 @@
- + {% for documento in docente.documentosVerificados %} + + {% if documento.idTipoDocumentos.identificador == "trabajo" or documento.idTipoDocumentos.identificador == "oposicion" %}
- - + +
-

Constancia de Trabajo

-
-
-
- -
-
- - - -
-

Concurso Oposición

+

{{ documento.idTipoDocumentos.nombre }}

+
+ + + + + + +
+
+ {% endif %} + {% endfor %} +
diff --git a/src/AppBundle/Controller/AppController.php b/src/AppBundle/Controller/AppController.php index b8eee43..84875b4 100644 --- a/src/AppBundle/Controller/AppController.php +++ b/src/AppBundle/Controller/AppController.php @@ -170,7 +170,9 @@ class AppController extends Controller { * @Method("GET") */ public function serviciosShowAction(DocenteServicio $servicio) - { + { + $em = $this->getDoctrine()->getManager(); + $docente = $em->getRepository("AppBundle:RolInstitucion")->findOneById($servicio->getIdRolInstitucion()->getId()); $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findOneBy(array( 'idRolInstitucion' => $servicio->getIdRolInstitucion(), @@ -179,7 +181,8 @@ class AppController extends Controller { return $this->render('cea/servicios_mostar.html.twig', array( 'servicio' => $servicio, 'oposicion' => $escala, - 'adscripcion' => $adscripcion + 'adscripcion' => $adscripcion, + 'docente' => $docente )); } -- 2.0.0