diff --git a/app/Resources/views/cea/solicitudes.html.twig b/app/Resources/views/cea/solicitudes.html.twig index 01c3f8f..af9edb0 100644 --- a/app/Resources/views/cea/solicitudes.html.twig +++ b/app/Resources/views/cea/solicitudes.html.twig @@ -1 +1,35 @@ {% extends 'base_app.html.twig' %} + +{%block body %} + +
+ + +{% endblock %} diff --git a/src/AppBundle/Controller/DocenteController.php b/src/AppBundle/Controller/DocenteController.php index 174e4a9..66a4e6d 100644 --- a/src/AppBundle/Controller/DocenteController.php +++ b/src/AppBundle/Controller/DocenteController.php @@ -10,6 +10,8 @@ namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; + /** * Description of DocenteController @@ -48,12 +50,16 @@ class DocenteController extends Controller { * * @Route("/solicitudes", name="cea_solicitudes") * @Method("GET") + * @Security("has_role('ROLE_COORDINADOR_NACIONAL')") */ public function SolicitudesAction() { - - return $this->render('cea/solicitudes.html.twig'); + $adscripciones = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findBy(array('idEstatus' => 2)); + + return $this->render('cea/solicitudes.html.twig', array( + 'adscripciones' => $adscripciones + )); } }