Commit 2a1c6fbf096dc12d73833f5a0bcaa71b40fac818
1 parent
36e37ec1ef
Exists in
master
pregunta el tipo de investigacion para poder crear el acta de defensa
Showing
3 changed files
with
113 additions
and
87 deletions
Show diff stats
app/Resources/views/memorando/acta_defensa.html.twig
... | ... | @@ -1,78 +0,0 @@ |
1 | -{% extends 'base_acta.html.twig' %} | |
2 | - | |
3 | - | |
4 | - {% block jurados %} | |
5 | - <th>Nombres y Apellidos</th> | |
6 | - <th>Cédula Identidad</th> | |
7 | - <th>Categoría</th> | |
8 | - {% for jurado in jurados %} | |
9 | - {% if jurado.idEstatusTutor.id == 1 or jurado.idEstatusTutor.id == 2 %} | |
10 | - <tr> | |
11 | - <td>{{ jurado.idTutor.nombres }}</td> | |
12 | - <td>{{ jurado.idTutor.cedulaPasaporte }}</td> | |
13 | - <td>{{ jurado.idTutor.idEscala.nombre }}</td> | |
14 | - </tr> | |
15 | - {% endif %} | |
16 | - | |
17 | - {% endfor %} | |
18 | - | |
19 | - {% endblock %} | |
20 | - | |
21 | - {% block resolucion %} | |
22 | - {{ resolucion }} | |
23 | - {% endblock %} | |
24 | - | |
25 | - {% block presidente %} | |
26 | - {{ presidente.idTutor.nombres }} {{ presidente.idTutor.apellidos }} {{ presidente.idTutor.cedulaPasaporte }} | |
27 | - {% endblock %} | |
28 | - | |
29 | - {% block titulo %} | |
30 | - {{ ascenso.tituloTrabajo }} | |
31 | - {% endblock %} | |
32 | - | |
33 | -{% block eje %} | |
34 | - {{ eje }} | |
35 | -{% endblock %} | |
36 | - | |
37 | -{% block estado %} | |
38 | - {{ estado }} | |
39 | -{% endblock %} | |
40 | - | |
41 | - {% block categoria1 %} | |
42 | - {{ categoria }} | |
43 | - {% endblock %} | |
44 | - {% block categoria2 %} | |
45 | - {{ categoria }} | |
46 | - {% endblock %} | |
47 | - {% block categoria3 %} | |
48 | - {{ categoria }} | |
49 | - {% endblock %} | |
50 | - | |
51 | - {% block modalidad1 %} | |
52 | - {{ ascenso.tipoTrabajoInvestigacion }} | |
53 | - {% endblock %} | |
54 | - | |
55 | - {% block modalidad2 %} | |
56 | - {{ ascenso.tipoTrabajoInvestigacion }} | |
57 | - {% endblock %} | |
58 | - | |
59 | - {% block firmas %} | |
60 | - <tr> | |
61 | - {% for jurado in jurados %} | |
62 | - {% if jurado.idEstatusTutor.id == 1 or jurado.idEstatusTutor.id == 2 %} | |
63 | - <td> {{ jurado.idTutor.cedulaPasaporte }} <br><br></td> | |
64 | - {% endif %} | |
65 | - {% endfor %} | |
66 | - </tr> | |
67 | - {% endblock %} | |
68 | - | |
69 | - {%block javascripts %} | |
70 | - {{ parent() }} | |
71 | - <script type="text/javascript"> | |
72 | - | |
73 | - window.onload = function () { | |
74 | - window.print(); //invoca la impresora tan pronto se carga el documento | |
75 | - setTimeout(function () { window.close(); }, 100); //cierra la venta si cierra el dialog de imprimir | |
76 | - } | |
77 | -</script> | |
78 | - {% endblock %} |
app/Resources/views/memorando/acta_defensa_investigacion.html.twig
... | ... | @@ -0,0 +1,78 @@ |
1 | +{% extends 'base_acta.html.twig' %} | |
2 | + | |
3 | + | |
4 | + {% block jurados %} | |
5 | + <th>Nombres y Apellidos</th> | |
6 | + <th>Cédula Identidad</th> | |
7 | + <th>Categoría</th> | |
8 | + {% for jurado in jurados %} | |
9 | + {% if jurado.idEstatusTutor.id == 1 or jurado.idEstatusTutor.id == 2 %} | |
10 | + <tr> | |
11 | + <td>{{ jurado.idTutor.nombres }}</td> | |
12 | + <td>{{ jurado.idTutor.cedulaPasaporte }}</td> | |
13 | + <td>{{ jurado.idTutor.idEscala.nombre }}</td> | |
14 | + </tr> | |
15 | + {% endif %} | |
16 | + | |
17 | + {% endfor %} | |
18 | + | |
19 | + {% endblock %} | |
20 | + | |
21 | + {% block resolucion %} | |
22 | + {{ resolucion }} | |
23 | + {% endblock %} | |
24 | + | |
25 | + {% block presidente %} | |
26 | + {{ presidente.idTutor.nombres }} {{ presidente.idTutor.apellidos }} {{ presidente.idTutor.cedulaPasaporte }} | |
27 | + {% endblock %} | |
28 | + | |
29 | + {% block titulo %} | |
30 | + {{ ascenso.tituloTrabajo }} | |
31 | + {% endblock %} | |
32 | + | |
33 | +{% block eje %} | |
34 | + {{ eje }} | |
35 | +{% endblock %} | |
36 | + | |
37 | +{% block estado %} | |
38 | + {{ estado }} | |
39 | +{% endblock %} | |
40 | + | |
41 | + {% block categoria1 %} | |
42 | + {{ categoria }} | |
43 | + {% endblock %} | |
44 | + {% block categoria2 %} | |
45 | + {{ categoria }} | |
46 | + {% endblock %} | |
47 | + {% block categoria3 %} | |
48 | + {{ categoria }} | |
49 | + {% endblock %} | |
50 | + | |
51 | + {% block modalidad1 %} | |
52 | + {{ ascenso.tipoTrabajoInvestigacion }} | |
53 | + {% endblock %} | |
54 | + | |
55 | + {% block modalidad2 %} | |
56 | + {{ ascenso.tipoTrabajoInvestigacion }} | |
57 | + {% endblock %} | |
58 | + | |
59 | + {% block firmas %} | |
60 | + <tr> | |
61 | + {% for jurado in jurados %} | |
62 | + {% if jurado.idEstatusTutor.id == 1 or jurado.idEstatusTutor.id == 2 %} | |
63 | + <td> {{ jurado.idTutor.cedulaPasaporte }} <br><br></td> | |
64 | + {% endif %} | |
65 | + {% endfor %} | |
66 | + </tr> | |
67 | + {% endblock %} | |
68 | + | |
69 | + {%block javascripts %} | |
70 | + {{ parent() }} | |
71 | + <script type="text/javascript"> | |
72 | + | |
73 | + window.onload = function () { | |
74 | + window.print(); //invoca la impresora tan pronto se carga el documento | |
75 | + setTimeout(function () { window.close(); }, 100); //cierra la venta si cierra el dialog de imprimir | |
76 | + } | |
77 | +</script> | |
78 | + {% endblock %} | ... | ... |
src/AppBundle/Controller/AscensoController.php
... | ... | @@ -1096,15 +1096,41 @@ class AscensoController extends Controller |
1096 | 1096 | |
1097 | 1097 | } |
1098 | 1098 | |
1099 | - return $this->render('memorando/acta_defensa.html.twig', array( | |
1100 | - 'ascenso' => $ascenso, | |
1101 | - 'eje' => $eje, | |
1102 | - 'estado' => $estado, | |
1103 | - 'resolucion' => $resolucion, | |
1104 | - 'presidente' => $presidente, | |
1105 | - 'categoria' => $escalafones, | |
1106 | - 'jurados' => $tutores | |
1107 | - )); | |
1099 | + | |
1100 | + if ($ascenso->getTipoTrabajoInvestigacion() == "investigacion" ) { | |
1101 | + | |
1102 | + return $this->render('memorando/acta_defensa_investigacion.html.twig', array( | |
1103 | + 'ascenso' => $ascenso, | |
1104 | + 'eje' => $eje, | |
1105 | + 'estado' => $estado, | |
1106 | + 'resolucion' => $resolucion, | |
1107 | + 'presidente' => $presidente, | |
1108 | + 'categoria' => $escalafones, | |
1109 | + 'jurados' => $tutores | |
1110 | + )); | |
1111 | + }else if (!$ascenso->getTesisUbv()) { | |
1112 | + | |
1113 | + return $this->render('memorando/acta_defensa_investigacion.html.twig', array( | |
1114 | + 'ascenso' => $ascenso, | |
1115 | + 'eje' => $eje, | |
1116 | + 'estado' => $estado, | |
1117 | + 'resolucion' => $resolucion, | |
1118 | + 'presidente' => $presidente, | |
1119 | + 'categoria' => $escalafones, | |
1120 | + 'jurados' => $tutores | |
1121 | + )); | |
1122 | + | |
1123 | + }else{ | |
1124 | + return $this->render('memorando/acta_defensa_investigacion.html.twig', array( | |
1125 | + 'ascenso' => $ascenso, | |
1126 | + 'eje' => $eje, | |
1127 | + 'estado' => $estado, | |
1128 | + 'resolucion' => $resolucion, | |
1129 | + 'presidente' => $presidente, | |
1130 | + 'categoria' => $escalafones, | |
1131 | + 'jurados' => $tutores | |
1132 | + )); | |
1133 | + } | |
1108 | 1134 | |
1109 | 1135 | }else{ |
1110 | 1136 | $this->addFlash('danger', 'No Puede Imprimir el reconocimiento de Adscripcion hasta que esté aprobado por el coordinador del CEA.'); | ... | ... |