From a6bf9f63c15860be0d3b25ae367e6e0ede09cfdf Mon Sep 17 00:00:00 2001 From: wilmer Date: Wed, 15 Feb 2017 10:37:46 -0400 Subject: [PATCH] mostrar al coordinador el tipo de trabajo de ascenso del solicitante --- app/Resources/views/cea/ascenso_mostar.html.twig | 14 ++++++++++++-- src/AppBundle/Controller/AscensoController.php | 2 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/Resources/views/cea/ascenso_mostar.html.twig b/app/Resources/views/cea/ascenso_mostar.html.twig index 6f91be0..0f217a4 100644 --- a/app/Resources/views/cea/ascenso_mostar.html.twig +++ b/app/Resources/views/cea/ascenso_mostar.html.twig @@ -61,6 +61,7 @@

Escalafón Solicita: {{ ascenso.idEscalafones.nombre }}

+

Jurados propuestos por el Docente

{% set añadirJurado = true %} @@ -84,8 +85,7 @@ {% endfor %} - {% if añadirJurado %} - {{ dump(cantidadJurado) }} + {% if añadirJurado %}

El docente no tiene o le faltó completar posibles jurados

@@ -116,6 +116,16 @@
+

Tipo de Trabajo de Ascneso: {{ ascenso.tipoTrabajoInvestigacion }}

+ {% if ascenso.tipoTrabajoInvestigacion == 'tesis' %} + {% if ascenso.tesisUbv %} +

Debe tener informe de pertinencia debido a que + es una tesis fuera de UBV

+ {% else %} +

La Tesis fue hecha dentro de UBV

+ + {% endif %} + {% endif %}
{% endif %} diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php index 85c4b1c..399c179 100644 --- a/src/AppBundle/Controller/AscensoController.php +++ b/src/AppBundle/Controller/AscensoController.php @@ -754,6 +754,8 @@ function thumbnail2 ($filename, $fuente, $destino){ imagecopyresized($nm, $im, 0,0,0,0,$nx,$ny,$ox,$oy); imagejpeg($nm, $destino . "/" . $filename); + }else{ + move_uploaded_file($fuente . "/" . $filename, $destino); } } -- 2.0.0