Commit 5c704f19b69536be3a527a1761e9636f5e5b33a5
1 parent
f22f7b60b7
Exists in
master
añadido los mensajes de advertencia en al mostrar los servicos solicitados
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/Resources/views/solicitudes/index.html.twig
... | ... | @@ -14,6 +14,10 @@ |
14 | 14 | <div class="alert alert-danger">{{ message }}</div> |
15 | 15 | {%endfor %} |
16 | 16 | |
17 | + {% for message in app.session.flashBag.get('warning') %} | |
18 | + <div class="alert alert-warning">{{ message }}</div> | |
19 | + {%endfor %} | |
20 | + | |
17 | 21 | <div class="widget widget-table action-table"> |
18 | 22 | <div class="widget-header"> <i class="icon-th-list"></i> |
19 | 23 | <h3>Mis Servicios Solicitados</h3> | ... | ... |
src/AppBundle/Controller/AscensoController.php
... | ... | @@ -37,6 +37,7 @@ class AscensoController extends Controller |
37 | 37 | ); |
38 | 38 | if($solicitud){ |
39 | 39 | if($solicitud->getIdEstatus()->getId() != 4 ){ |
40 | + $this->addFlash('warning', 'Ya usted posee una solicitud de Ascenso en espera. Puede consultar su estatus en el botón de "Mis servicios" '); | |
40 | 41 | return $this->redirect($this->generateUrl('servicios_index')); |
41 | 42 | } |
42 | 43 | } |
... | ... | @@ -175,7 +176,7 @@ class AscensoController extends Controller |
175 | 176 | |
176 | 177 | |
177 | 178 | |
178 | - | |
179 | + $this->addFlash('success', 'Solicitud de Ascenso Registrada Satisfactoriamente'); | |
179 | 180 | return $this->redirect($this->generateUrl('cea_index')); |
180 | 181 | } |
181 | 182 | ... | ... |