From 326a15ecfb32f5efe2754a9df7b044017e3ff0d3 Mon Sep 17 00:00:00 2001 From: Wilmer Ramones Date: Fri, 8 Jul 2016 16:23:37 -0400 Subject: [PATCH] creado la visualizacion de las solicitudes individuales junto con su controlador y plantilla --- app/Resources/views/cea/solicitudes.html.twig | 2 +- .../views/cea/solicitudes_mostar.html.twig | 86 ++++++++++++++++++++++ app/cache/.gitkeep | 0 app/logs/.gitkeep | 0 app/sessions/sess_rrvo7g5k0n5sf3mgdorhqifsv3 | 0 src/AppBundle/Controller/DocenteController.php | 24 +++++- src/AppBundle/Entity/LineasInvestigacion.php | 4 + 7 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 app/Resources/views/cea/solicitudes_mostar.html.twig mode change 100644 => 100755 app/cache/.gitkeep mode change 100644 => 100755 app/logs/.gitkeep mode change 100644 => 100755 app/sessions/sess_rrvo7g5k0n5sf3mgdorhqifsv3 diff --git a/app/Resources/views/cea/solicitudes.html.twig b/app/Resources/views/cea/solicitudes.html.twig index 9b5d8ec..6dfbf05 100644 --- a/app/Resources/views/cea/solicitudes.html.twig +++ b/app/Resources/views/cea/solicitudes.html.twig @@ -38,7 +38,7 @@ {{adscripcion.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} - + diff --git a/app/Resources/views/cea/solicitudes_mostar.html.twig b/app/Resources/views/cea/solicitudes_mostar.html.twig new file mode 100644 index 0000000..fedcde6 --- /dev/null +++ b/app/Resources/views/cea/solicitudes_mostar.html.twig @@ -0,0 +1,86 @@ +{% extends 'base_app.html.twig' %} + +{%block body %} + +
+
+
+
+

Solicitud de Adscripción número {{adscripcion.id}}: {{ adscripcion.idRolInstitucion.idRol.idPersona.primerNombre }}, {{ adscripcion.idRolInstitucion.idRol.idPersona.primerApellido }}

+ +
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ + +
+ +
+ + + + + + {% for escala in escalas %} + + + + + + + {%endfor %} +
EscalafónFechaTipo
{{escala.idEscala }}{{escala.fechaEscala | date('d-m-Y') }}{{escala.idTipoEscala }}
+ +
+ +
+ +
    +
  • {{adscripcion.idLineaInvestigacion.idAreaInvestigacion}}
  • +
  • {{adscripcion.idLineaInvestigacion}}
  • +
+
+ +
+ + + + +
+ + + + + +
+
+
+
+ +
+ +
+

Documentos Consignados

+ +
+ +
+
+
+ +{% endblock %} diff --git a/app/cache/.gitkeep b/app/cache/.gitkeep old mode 100644 new mode 100755 diff --git a/app/logs/.gitkeep b/app/logs/.gitkeep old mode 100644 new mode 100755 diff --git a/app/sessions/sess_rrvo7g5k0n5sf3mgdorhqifsv3 b/app/sessions/sess_rrvo7g5k0n5sf3mgdorhqifsv3 old mode 100644 new mode 100755 diff --git a/src/AppBundle/Controller/DocenteController.php b/src/AppBundle/Controller/DocenteController.php index 66a4e6d..a17d227 100644 --- a/src/AppBundle/Controller/DocenteController.php +++ b/src/AppBundle/Controller/DocenteController.php @@ -12,6 +12,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; +use AppBundle\Entity\Adscripcion; + /** * Description of DocenteController @@ -52,7 +54,7 @@ class DocenteController extends Controller { * @Method("GET") * @Security("has_role('ROLE_COORDINADOR_NACIONAL')") */ - public function SolicitudesAction() + public function verSolicitudesAction() { $adscripciones = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findBy(array('idEstatus' => 2)); @@ -62,4 +64,24 @@ class DocenteController extends Controller { )); } + /** + * Encuentra y muestra una entidad de tipo Adscripción. + * + * @Route("/solicitudes/{id}", name="cea_solicitudes_show") + * @Method("GET") + */ + public function solicitudesShowAction(Adscripcion $adscripcion) + { + //$deleteForm = $this->createDeleteForm($usuario); + $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findBy(array( + 'idRolInstitucion' => $adscripcion->getIdRolInstitucion()->getId() + )); + + return $this->render('cea/solicitudes_mostar.html.twig', array( + 'adscripcion' => $adscripcion, + 'escalas' => $escala + )); + } + } + \ No newline at end of file diff --git a/src/AppBundle/Entity/LineasInvestigacion.php b/src/AppBundle/Entity/LineasInvestigacion.php index fc87853..764f369 100644 --- a/src/AppBundle/Entity/LineasInvestigacion.php +++ b/src/AppBundle/Entity/LineasInvestigacion.php @@ -105,4 +105,8 @@ class LineasInvestigacion { return $this->idAreaInvestigacion; } + + public function __toString() { + return $this->getNombre(); + } } \ No newline at end of file -- 2.0.0