Commit 2fc291452998f23e3be9102c6d0aa5507fd69617
1 parent
3f3fb8d128
Exists in
master
controlando la solicitud de pida en todas las vistas
Showing
4 changed files
with
75 additions
and
23 deletions
Show diff stats
app/Resources/views/cea/solicitudes_mostar.html.twig
... | ... | @@ -272,10 +272,18 @@ |
272 | 272 | {% if not todo.pida %} |
273 | 273 | <p class="alert alert-warning">El Docente no ha registrado todavía su actividad PIDA</p> |
274 | 274 | {% else %} |
275 | + | |
275 | 276 | <div class="col-md-12"> |
277 | + {% if servicioPida.idEstatus.id == 2 %} | |
278 | + <h4 class="alert btn-warning">El docente Todavía está creando su PIDA</h4> | |
279 | + {% elseif servicioPida.idEstatus.id == 4 %} | |
280 | + <h4 class="btn btn-primary col-lg-12" >Este Pida está formalizado y listo para ser revisado por la coordianción</h4> | |
281 | + {% endif %} | |
276 | 282 | <div class="account-container full register"> |
283 | + | |
277 | 284 | <div class="content clearfix"> |
278 | - <h2>PIDA <span class="small" style="float: right;"> Estatus: {{ servicio.idEstatus }}</span></h2> | |
285 | + | |
286 | + <h2>PIDA <span class="small" style="float: right;"> Estatus: {{ servicioPida.idEstatus }}</span></h2> | |
279 | 287 | <table class="table table-bordered"> |
280 | 288 | <th>Objetivo Histórico</th> |
281 | 289 | <th>Actividad Docente</th> | ... | ... |
app/Resources/views/solicitudes/adscripcion_show.twig
... | ... | @@ -3,6 +3,9 @@ |
3 | 3 | {{ parent() }} |
4 | 4 | <link href="{{ asset('assets/vendor/lightbox2/dist/css/lightbox.css') }}" rel="stylesheet"> |
5 | 5 | <style> |
6 | + .full{ | |
7 | + width: 100%; | |
8 | + } | |
6 | 9 | .wrapper { |
7 | 10 | width: 6.9rem; |
8 | 11 | height: 2rem; |
... | ... | @@ -240,25 +243,58 @@ |
240 | 243 | |
241 | 244 | </div> |
242 | 245 | |
243 | - <!-- MOSTRAR ACTIVIDAD PIDA DEL DOCENTE --> | |
244 | - {% if not todo.pida %} | |
245 | - <p class="alert alert-warning">El Docente no ha registrado todavía su actividad PIDA</p> | |
246 | - {% else %} | |
247 | - <div class="form-group"> | |
248 | - <label for="pida">PIDA:</label> | |
249 | - {% for pida in todo.pida %} | |
250 | - <ul> | |
251 | - <li>Objetivo Estratégico: {{ pida.idPlanHistoricoNacionalEstrategico.nombre }}</li> | |
252 | - <li>Ámbito: {{ pida.idActividadDocente.nombre }}</li> | |
253 | - <li>Objetivo Específico: {{ pida.ObjetivoEspecifico }}</li> | |
254 | - <li>Fecha inicio: {{ pida.fechaInicio | date('d-m-Y') }} </li> | |
255 | - <li>Fecha final: {{ pida.fechaFinal | date('d-m-Y') }} </li> | |
256 | - | |
257 | - </ul> | |
258 | - {% endfor %} | |
246 | + <!-- MOSTRAR ACTIVIDAD PIDA DEL DOCENTE --> | |
247 | + {% if not todo.pida %} | |
248 | + <p class="alert alert-warning">El Docente no ha registrado todavía su actividad PIDA</p> | |
249 | + {% else %} | |
259 | 250 | |
251 | + <div class="col-md-12"> | |
252 | + {% if servicioPida.idEstatus.id == 2 %} | |
253 | + <h4 class="alert btn-warning">El docente Todavía está creando su PIDA</h4> | |
254 | + {% elseif servicioPida.idEstatus.id == 4 %} | |
255 | + <h4 class="btn btn-primary col-lg-12" >Este Pida está formalizado y listo para ser revisado por la coordianción</h4> | |
256 | + {% endif %} | |
257 | + <div class="account-container full register"> | |
258 | + | |
259 | + <div class="content clearfix"> | |
260 | + | |
261 | + <h2>PIDA <span class="small" style="float: right;"> Estatus: {{ servicioPida.idEstatus }}</span></h2> | |
262 | + <table class="table table-bordered"> | |
263 | + <th>Objetivo Histórico</th> | |
264 | + <th>Actividad Docente</th> | |
265 | + <th>Tarea Específica</th> | |
266 | + <th>Plazo</th> | |
267 | + <th>Estatus</th> | |
268 | + {% for pid in todo.pida | sort %} | |
269 | + <tr> | |
270 | + <td rowspan="{{ pid.pidaTareaEspecifico | length }}"> | |
271 | + {{ pid.idPlanHistoricoNacionalEstrategico.nombre }} | |
272 | + | |
273 | + </td> | |
274 | + <td rowspan="{{ pid.pidaTareaEspecifico | length }}"> | |
275 | + {{ pid.idActividadDocente.nombre }} | |
276 | + </td> | |
277 | + | |
278 | + {% for tarea in pid.pidaTareaEspecifico | sort %} | |
279 | + <td>{{ tarea.pidaTareaEspecifico }} | |
280 | + | |
281 | + </td> | |
282 | + <td>{{ tarea.idPidaPlazo }}</td> | |
283 | + <td> | |
284 | + {{ tarea.idPidaEstatus }} | |
285 | + | |
286 | + </td> | |
287 | + | |
288 | + </tr> | |
289 | + {% endfor %} | |
290 | + | |
291 | + </tr> | |
292 | + {% endfor %} | |
293 | + </table> | |
294 | + </div> | |
260 | 295 | </div> |
261 | - {% endif %} | |
296 | + </div> | |
297 | + {% endif %} | |
262 | 298 | {#{% if servicio.idEstatus.id == 3 %} |
263 | 299 | <button type="submit" class="btn btn-success" id="actualizar" name="actualizar">Actualizar Adscripción</button> |
264 | 300 | {% endif %}#} | ... | ... |
app/Resources/views/solicitudes/pida.html.twig
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 | </h4> |
37 | 37 | </div> |
38 | 38 | <div class="row"> |
39 | - {% if servicio.idEstatus.id == 2 %} | |
39 | + {% if not servicio or servicio.idEstatus.id == 2 %} | |
40 | 40 | <div class="col-md-4"> |
41 | 41 | |
42 | 42 | |
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | </div> |
88 | 88 | {{ form_end(caducidadForm) }} |
89 | 89 | {% else %} |
90 | - PIDA válido desde: {{ caduca.fechaInicio | date('d-m-Y')}} hasta: {{ caduca.fechaFinal | date('m-d-Y') }}. vigencia de ( {% if caducaAnos > 0 %} %} y {{ caducaAnos }} años {% endif %}{{ caducaMeses }} meses con {{ caducaDias }} días ) | |
90 | + PIDA válido desde: {{ caduca.fechaInicio | date('d-m-Y')}} hasta: {{ caduca.fechaFinal | date('m-d-Y') }}. vigencia de ( {% if caducaAnos > 0 %} {{ caducaAnos }} años {% endif %}{{ caducaMeses }} meses con {{ caducaDias }} días ) | |
91 | 91 | |
92 | 92 | {% endif %} |
93 | 93 | <table class="table table-bordered"> | ... | ... |
src/AppBundle/Controller/AdscripcionController.php
... | ... | @@ -666,12 +666,15 @@ class AdscripcionController extends Controller |
666 | 666 | { |
667 | 667 | $em = $this->getDoctrine()->getManager(); |
668 | 668 | $todo = $em->getRepository("AppBundle:RolInstitucion")->findOneById($servicio->getIdRolInstitucion()); |
669 | - | |
669 | + $servicioPida = $this->getDoctrine()->getRepository("AppBundle:DocenteServicio")->findOneBy(array( | |
670 | + 'idRolInstitucion' => $todo, | |
671 | + 'idServicioCe' => 4 | |
672 | + )); | |
670 | 673 | |
671 | 674 | |
672 | 675 | return $this->render('cea/solicitudes_mostar.html.twig', array( |
673 | 676 | 'servicio' => $servicio, |
674 | - 'servicio' => $servicio, | |
677 | + 'servicioPida' => $servicioPida, | |
675 | 678 | 'todo' => $todo |
676 | 679 | )); |
677 | 680 | } |
... | ... | @@ -689,6 +692,10 @@ class AdscripcionController extends Controller |
689 | 692 | { |
690 | 693 | $em = $this->getDoctrine()->getManager(); |
691 | 694 | $todo = $servicio->getIdRolInstitucion(); |
695 | + $servicioPida = $this->getDoctrine()->getRepository("AppBundle:DocenteServicio")->findOneBy(array( | |
696 | + 'idRolInstitucion' => $todo, | |
697 | + 'idServicioCe' => 4 | |
698 | + )); | |
692 | 699 | |
693 | 700 | $form = $this->createForm('AppBundle\Form\AdscripcionEditType'); |
694 | 701 | |
... | ... | @@ -746,7 +753,8 @@ class AdscripcionController extends Controller |
746 | 753 | 'servicio' => $servicio, |
747 | 754 | 'todo' => $todo, |
748 | 755 | 'form' => $form->createView(), |
749 | - 'proxEscala' => $proxEscalafon | |
756 | + 'proxEscala' => $proxEscalafon, | |
757 | + 'servicioPida' => $servicioPida | |
750 | 758 | )); |
751 | 759 | } |
752 | 760 | ... | ... |