diff --git a/app/Resources/views/cea/ascenso_mostar.html.twig b/app/Resources/views/cea/ascenso_mostar.html.twig
index cab96d5..6f91be0 100644
--- a/app/Resources/views/cea/ascenso_mostar.html.twig
+++ b/app/Resources/views/cea/ascenso_mostar.html.twig
@@ -215,6 +215,21 @@
{% endif %}
+
+
+
+ {% if ascenso.curriculo is not null %}
+
+
+
+
+
+
+
Síntesis Curricular de los posibles Jurados
+
+
+
+ {% endif %}
diff --git a/app/Resources/views/solicitudes/ascenso.html.twig b/app/Resources/views/solicitudes/ascenso.html.twig
index e5913d1..c630c46 100644
--- a/app/Resources/views/solicitudes/ascenso.html.twig
+++ b/app/Resources/views/solicitudes/ascenso.html.twig
@@ -142,10 +142,9 @@
$('#ascenso_tipoTrabajoInvestigacion').click(function() {
alert("click");
-
- $('.esc_oposicion')[this.checked ? "show" : "hide"]();
- if($('#ascenso_tipoTrabajoInvestigacion').val() == false){
+
+ if($('#ascenso_tipoTrabajoInvestigacion').val() === 'investigacion'){
$('.esc_investigacion').show();
$('.esc_tesis').hide();
$("#ascenso_tutores_ascenso_chosen").show();
diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php
index 258c286..85c4b1c 100644
--- a/src/AppBundle/Controller/AscensoController.php
+++ b/src/AppBundle/Controller/AscensoController.php
@@ -199,6 +199,8 @@ class AscensoController extends Controller
$ascenso->setNai($nombreNai);
$ascenso->setInvestigacion($nombreInvestigacion);
$ascenso->setTituloTrabajo($form->get('titulo_trabajo')->getData());
+ $ascenso->setTipoTrabajoInvestigacion($form->get('tipoTrabajoInvestigacion')->getData());
+ $ascenso->setTesisUbv($form->get('tesisUbv')->getData());
$ascenso->setNombreNucelo($form->get('nombreNucleo')->getData());
$ascenso->setIdEscalafones($nueva_escala);
$ascenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(2));
@@ -729,7 +731,8 @@ class AscensoController extends Controller
/*funcion para crear miniaturas de las imagenes y carga más rapido la página */
-function thumbnail2 ($filename, $fuente, $destino){
+function thumbnail2 ($filename, $fuente, $destino){
+ $im = false;
if(preg_match('/[.](jpeg)$/', $filename)) {
$im = imagecreatefromjpeg($fuente . "/" . $filename);
} else if (preg_match('/[.](jpg)$/', $filename)) {
@@ -739,17 +742,18 @@ function thumbnail2 ($filename, $fuente, $destino){
} else if (preg_match('/[.](png)$/', $filename)) {
$im = imagecreatefrompng($fuente . "/" . $filename);
}
+ if($im){
+ $ox = imagesx($im);
+ $oy = imagesy($im);
- $ox = imagesx($im);
- $oy = imagesy($im);
+ $nx = 80;
+ $ny = 80;
- $nx = 80;
- $ny = 80;
+ $nm = imagecreatetruecolor($nx, $ny);
- $nm = imagecreatetruecolor($nx, $ny);
+ imagecopyresized($nm, $im, 0,0,0,0,$nx,$ny,$ox,$oy);
- imagecopyresized($nm, $im, 0,0,0,0,$nx,$ny,$ox,$oy);
-
- imagejpeg($nm, $destino . "/" . $filename);
+ imagejpeg($nm, $destino . "/" . $filename);
+ }
}
diff --git a/src/AppBundle/Entity/Ascenso.php b/src/AppBundle/Entity/Ascenso.php
index 63b4445..56ae3c3 100644
--- a/src/AppBundle/Entity/Ascenso.php
+++ b/src/AppBundle/Entity/Ascenso.php
@@ -126,6 +126,21 @@ class Ascenso
* @Assert\NotBlank(message="El nombre del núcleo de investigación es obligatorio.")
*/
private $nombreNucelo;
+
+
+
+ /**
+ * @ORM\Column(name="tipo_trabajo_investigacion", type="string", nullable=true, options={"comment" = "tipo de trabajo: tesis/investigacion"})
+ * @Assert\NotBlank(message="El nombre del núcleo de investigación es obligatorio.")
+ */
+ private $tipoTrabajoInvestigacion;
+
+
+ /**
+ * @ORM\Column(name="tesis_ubv", type="boolean", nullable=true, options={"comment" = "si el trabajo es una tesis, ¿esta hecha dentro de la UBV?"})
+ *
+ */
+ private $tesisUbv;
/**
@@ -605,4 +620,50 @@ class Ascenso
{
return $this->curriculo;
}
+
+ /**
+ * Set tipoTrabajoInvestigacion
+ *
+ * @param string $tipoTrabajoInvestigacion
+ * @return Ascenso
+ */
+ public function setTipoTrabajoInvestigacion($tipoTrabajoInvestigacion)
+ {
+ $this->tipoTrabajoInvestigacion = $tipoTrabajoInvestigacion;
+
+ return $this;
+ }
+
+ /**
+ * Get tipoTrabajoInvestigacion
+ *
+ * @return string
+ */
+ public function getTipoTrabajoInvestigacion()
+ {
+ return $this->tipoTrabajoInvestigacion;
+ }
+
+ /**
+ * Set tesisUbv
+ *
+ * @param boolean $tesisUbv
+ * @return Ascenso
+ */
+ public function setTesisUbv($tesisUbv)
+ {
+ $this->tesisUbv = $tesisUbv;
+
+ return $this;
+ }
+
+ /**
+ * Get tesisUbv
+ *
+ * @return boolean
+ */
+ public function getTesisUbv()
+ {
+ return $this->tesisUbv;
+ }
}
diff --git a/src/AppBundle/Entity/Ascenso.php~ b/src/AppBundle/Entity/Ascenso.php~
index b7c69b3..224535b 100644
--- a/src/AppBundle/Entity/Ascenso.php~
+++ b/src/AppBundle/Entity/Ascenso.php~
@@ -126,6 +126,21 @@ class Ascenso
* @Assert\NotBlank(message="El nombre del núcleo de investigación es obligatorio.")
*/
private $nombreNucelo;
+
+
+
+ /**
+ * @ORM\Column(name="tipo_trabajo_investigacion", type="string", nullable=true, options={"comment" = "tipo de trabajo: tesis/investigacion"})
+ * @Assert\NotBlank(message="El nombre del núcleo de investigación es obligatorio.")
+ */
+ private $tipoTrabajoInvestigacion;
+
+
+ /**
+ * @ORM\Column(name="tesis_ubv", type="boolean", nullable=true, options={"comment" = "si el trabajo es una tesis, ¿esta hecha dentro de la UBV?"})
+ *
+ */
+ private $tesisUbv;
/**
@@ -582,4 +597,27 @@ class Ascenso
{
return $this->nombreNucelo;
}
+
+ /**
+ * Set curriculo
+ *
+ * @param string $curriculo
+ * @return Ascenso
+ */
+ public function setCurriculo($curriculo)
+ {
+ $this->curriculo = $curriculo;
+
+ return $this;
+ }
+
+ /**
+ * Get curriculo
+ *
+ * @return string
+ */
+ public function getCurriculo()
+ {
+ return $this->curriculo;
+ }
}
diff --git a/src/AppBundle/Form/AscensoType.php b/src/AppBundle/Form/AscensoType.php
index 4bf9c10..cf1eb06 100644
--- a/src/AppBundle/Form/AscensoType.php
+++ b/src/AppBundle/Form/AscensoType.php
@@ -104,8 +104,8 @@ class AscensoType extends AbstractType
->add('tipoTrabajoInvestigacion', ChoiceType::class, array(
'placeholder' => 'Seleccione el Tipo de Trabajo de Investigación',
'choices' => array(
- 'Tesis (Trabajo de 4to nivel)' => true,
- 'Trabajo de Investigacion' => false,
+ 'Tesis (Trabajo de 4to nivel)' => 'tesis',
+ 'Trabajo de Investigacion' => 'investigacion',
),
// *this line is important*
'choices_as_values' => true,