Commit b0eb18a10da9ca362ffefcc5f628f7e6b635ebd8
1 parent
7f01a53878
Exists in
master
creado mostrar las miniaturas y actualizar la adscripcion(aprobada o rechazada)
Showing
3 changed files
with
101 additions
and
10 deletions
Show diff stats
app/Resources/views/cea/solicitudes_mostar.html.twig
| @@ -5,7 +5,10 @@ | @@ -5,7 +5,10 @@ | ||
| 5 | {% endblock %} | 5 | {% endblock %} |
| 6 | 6 | ||
| 7 | {%block body %} | 7 | {%block body %} |
| 8 | - | 8 | + {% for message in app.session.flashBag.get('notice') %} |
| 9 | + <div class="alert alert-success">{{ message }}</div> | ||
| 10 | + | ||
| 11 | + {%endfor %} | ||
| 9 | <div class="content-wrapper"> | 12 | <div class="content-wrapper"> |
| 10 | <div class="container"> | 13 | <div class="container"> |
| 11 | <div class="row"> | 14 | <div class="row"> |
| @@ -48,14 +51,15 @@ | @@ -48,14 +51,15 @@ | ||
| 48 | </table> | 51 | </table> |
| 49 | 52 | ||
| 50 | </div> | 53 | </div> |
| 51 | - | 54 | + {% if adscripcion.idLineaInvestigacion is not null %} |
| 52 | <div class="form-group"> | 55 | <div class="form-group"> |
| 53 | <label for="username">Area y Línea de Investigación:</label> | 56 | <label for="username">Area y Línea de Investigación:</label> |
| 54 | <ul> | 57 | <ul> |
| 55 | <li>{{adscripcion.idLineaInvestigacion.idAreaInvestigacion}}</li> | 58 | <li>{{adscripcion.idLineaInvestigacion.idAreaInvestigacion}}</li> |
| 56 | <li>{{adscripcion.idLineaInvestigacion}}</li> | 59 | <li>{{adscripcion.idLineaInvestigacion}}</li> |
| 57 | </ul> | 60 | </ul> |
| 58 | - </div> | 61 | + </div> |
| 62 | + {% endif %} | ||
| 59 | 63 | ||
| 60 | <div class="form-group"> | 64 | <div class="form-group"> |
| 61 | <label for="titulo">Título del Trabajo:</label> | 65 | <label for="titulo">Título del Trabajo:</label> |
| @@ -67,18 +71,74 @@ | @@ -67,18 +71,74 @@ | ||
| 67 | 71 | ||
| 68 | 72 | ||
| 69 | 73 | ||
| 70 | - <button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-user"></span> Ingresar</button> | 74 | + <a class="btn btn-primary" href="{{ path('cea_solicitudes_actualizar', { 'id': adscripcion.id, 'estatus' : 'true' }) }}" ><span class="fa fa-check"></span> Aprobar</a> |
| 75 | + <a class="btn btn-danger" href="{{ path('cea_solicitudes_actualizar', { 'id': adscripcion.id, 'estatus' : 'false' }) }}" ><span class="fa fa-close"></span> Rechazar</a> | ||
| 71 | </form> | 76 | </form> |
| 72 | <hr /> | 77 | <hr /> |
| 73 | </div> | 78 | </div> |
| 74 | </div> | 79 | </div> |
| 75 | 80 | ||
| 76 | - <div class="col-md-5"> | ||
| 77 | - | 81 | + <div class="col-md-5"> |
| 82 | + <h3>Documentos Consignados</h3> | ||
| 78 | <div class="widget-content"> | 83 | <div class="widget-content"> |
| 79 | - <h3>Documentos Consignados</h3> | ||
| 80 | - <a href="{{asset('uploads/adscripcion/'~ adscripcion.trabajo)}}" data-lightbox="adscripcion">#1</a> | ||
| 81 | - <a href="{{asset('uploads/adscripcion/'~ adscripcion.oposicion)}}" data-lightbox="adscripcion">#2</a> | 84 | + |
| 85 | + | ||
| 86 | + | ||
| 87 | + <div class="col-xs-4"> | ||
| 88 | + <div class="thumbnail"> | ||
| 89 | + <a href="{{asset('uploads/adscripcion/'~ adscripcion.trabajo)}}" data-lightbox="adscripcion"> | ||
| 90 | + <img src="{{ asset('uploads/adscripcion/thumb/'~ adscripcion.trabajo) }}" /> | ||
| 91 | + </a> | ||
| 92 | + <div class="caption"> | ||
| 93 | + <p>Constancia de Trabajo</p> | ||
| 94 | + </div> | ||
| 95 | + </div> | ||
| 96 | + </div> | ||
| 97 | + | ||
| 98 | + <div class="col-xs-4"> | ||
| 99 | + <div class="thumbnail"> | ||
| 100 | + <a href="{{asset('uploads/adscripcion/'~ adscripcion.pregrado)}}" data-lightbox="adscripcion"> | ||
| 101 | + <img src="{{ asset('uploads/adscripcion/thumb/'~ adscripcion.pregrado) }}" /> | ||
| 102 | + </a> | ||
| 103 | + <div class="caption"> | ||
| 104 | + <p>Título de Pregrado</p> | ||
| 105 | + </div> | ||
| 106 | + </div> | ||
| 107 | + </div> | ||
| 108 | + | ||
| 109 | + {% if adscripcion.postgrado is not null %} | ||
| 110 | + <div class="col-xs-4"> | ||
| 111 | + <div class="thumbnail"> | ||
| 112 | + <a href="{{asset('uploads/adscripcion/'~ adscripcion.postgrado)}}" data-lightbox="adscripcion"> | ||
| 113 | + <img src="{{ asset('uploads/adscripcion/thumb/'~ adscripcion.postgrado) }}" /> | ||
| 114 | + </a> | ||
| 115 | + <div class="caption"> | ||
| 116 | + <p>Título de Postgrado</p> | ||
| 117 | + </div> | ||
| 118 | + </div> | ||
| 119 | + </div> | ||
| 120 | + {% endif %} | ||
| 121 | + | ||
| 122 | + {% if adscripcion.oposicion is not null %} | ||
| 123 | + <div class="col-xs-4"> | ||
| 124 | + <div class="thumbnail"> | ||
| 125 | + <a href="{{asset('uploads/adscripcion/'~ adscripcion.oposicion)}}" data-lightbox="adscripcion"> | ||
| 126 | + <img src="{{ asset('uploads/adscripcion/thumb/'~ adscripcion.oposicion) }}" /> | ||
| 127 | + </a> | ||
| 128 | + <div class="caption"> | ||
| 129 | + <p>Concurso de Oposición</p> | ||
| 130 | + </div> | ||
| 131 | + </div> | ||
| 132 | + </div> | ||
| 133 | + {% endif %} | ||
| 134 | + | ||
| 135 | + | ||
| 136 | + | ||
| 137 | + | ||
| 138 | + | ||
| 139 | + | ||
| 140 | + | ||
| 141 | + | ||
| 82 | 142 | ||
| 83 | 143 | ||
| 84 | </div> | 144 | </div> |
app/sessions/sess_rrvo7g5k0n5sf3mgdorhqifsv3
| @@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
| 1 | -_sf2_attributes|a:2:{s:15:"_csrf/solicitar";s:43:"teDYeoRVLhqkon1sbSKYpV4G6mxuZ1GMSQFUgRjshFg";s:18:"_csrf/authenticate";s:43:"VlN7CPotazsmu1ICwwhze9mM0RbA1CbhB-LodV0c8Og";}_sf2_flashes|a:0:{}_sf2_meta|a:3:{s:1:"u";i:1467842031;s:1:"c";i:1467842029;s:1:"l";s:1:"0";} | ||
| 2 | \ No newline at end of file | 0 | \ No newline at end of file |
src/AppBundle/Controller/AppController.php
| @@ -83,5 +83,37 @@ class AppController extends Controller { | @@ -83,5 +83,37 @@ class AppController extends Controller { | ||
| 83 | )); | 83 | )); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | + | ||
| 87 | + /** | ||
| 88 | + * Encuentra y muestra una entidad de tipo Adscripción. | ||
| 89 | + * | ||
| 90 | + * @Route("/solicitudes/actualizar/{id}/{estatus}", name="cea_solicitudes_actualizar") | ||
| 91 | + * @Method({"GET", "POST"}) | ||
| 92 | + */ | ||
| 93 | + public function solicitudesEditAction(Adscripcion $adscripcion, $estatus) | ||
| 94 | + { | ||
| 95 | + | ||
| 96 | + $adscripciones = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneById($adscripcion->getId()); | ||
| 97 | + | ||
| 98 | + if($estatus) $adscripciones->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(1)); | ||
| 99 | + else $adscripciones->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(3)); | ||
| 100 | + | ||
| 101 | + $em = $this->getDoctrine()->getManager(); | ||
| 102 | + $em->persist($adscripciones); | ||
| 103 | + $em->flush(); | ||
| 104 | + | ||
| 105 | + $this->addFlash('notice', 'Solicitud Actualizada Correctamente'); | ||
| 106 | + | ||
| 107 | + $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findBy(array( | ||
| 108 | + 'idRolInstitucion' => $adscripciones->getIdRolInstitucion()->getId() | ||
| 109 | + )); | ||
| 110 | + | ||
| 111 | + return $this->render('cea/solicitudes_mostar.html.twig', array( | ||
| 112 | + 'adscripcion' => $adscripciones, | ||
| 113 | + 'escalas' => $escala | ||
| 114 | + )); | ||
| 115 | + | ||
| 116 | + } | ||
| 117 | + | ||
| 86 | } | 118 | } |
| 87 | 119 | ||
| 88 | \ No newline at end of file | 120 | \ No newline at end of file |