From 5c704f19b69536be3a527a1761e9636f5e5b33a5 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Mon, 28 Nov 2016 08:32:48 -0400 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20los=20mensajes=20de=20advertenci?= =?UTF-8?q?a=20en=20al=20mostrar=20los=20servicos=20solicitados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Resources/views/solicitudes/index.html.twig | 4 ++++ src/AppBundle/Controller/AscensoController.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Resources/views/solicitudes/index.html.twig b/app/Resources/views/solicitudes/index.html.twig index a5e58f1..98a2c08 100644 --- a/app/Resources/views/solicitudes/index.html.twig +++ b/app/Resources/views/solicitudes/index.html.twig @@ -14,6 +14,10 @@
{{ message }}
{%endfor %} + {% for message in app.session.flashBag.get('warning') %} +
{{ message }}
+ {%endfor %} +

Mis Servicios Solicitados

diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php index e7648d3..8c06a84 100644 --- a/src/AppBundle/Controller/AscensoController.php +++ b/src/AppBundle/Controller/AscensoController.php @@ -37,6 +37,7 @@ class AscensoController extends Controller ); if($solicitud){ if($solicitud->getIdEstatus()->getId() != 4 ){ + $this->addFlash('warning', 'Ya usted posee una solicitud de Ascenso en espera. Puede consultar su estatus en el botón de "Mis servicios" '); return $this->redirect($this->generateUrl('servicios_index')); } } @@ -175,7 +176,7 @@ class AscensoController extends Controller - + $this->addFlash('success', 'Solicitud de Ascenso Registrada Satisfactoriamente'); return $this->redirect($this->generateUrl('cea_index')); } -- 2.0.0