From df44a12017d9e46e456464b429ef802a0caaa16c Mon Sep 17 00:00:00 2001 From: david Date: Fri, 2 Nov 2012 11:48:15 +0000 Subject: [PATCH] Tarea #1142 -> Cambiar en los breadcrumbs "tablero" por "home" git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@70 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d --- www/protected/controllers/SiteController.php | 2 +- www/protected/models/Candidato.php | 20 ------------------- www/themes/profind/views/candidato/create.php | 4 +++- www/themes/profind/views/candidato/index.php | 4 +++- www/themes/profind/views/candidato/update.php | 4 +++- www/themes/profind/views/layouts/main.php | 2 +- www/themes/profind/views/site/index.php | 15 ++++++++++++++ 7 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 www/themes/profind/views/site/index.php diff --git a/www/protected/controllers/SiteController.php b/www/protected/controllers/SiteController.php index 5ecfa1f..ee062bf 100644 --- a/www/protected/controllers/SiteController.php +++ b/www/protected/controllers/SiteController.php @@ -13,7 +13,7 @@ class SiteController extends Controller { 'users' => array('*') ), array('allow', - 'actions' => array('logout'), + 'actions' => array('logout', 'index'), 'users' => array('@') ), array('deny'), diff --git a/www/protected/models/Candidato.php b/www/protected/models/Candidato.php index 4d8e1e2..3b50a9b 100644 --- a/www/protected/models/Candidato.php +++ b/www/protected/models/Candidato.php @@ -73,26 +73,6 @@ class Candidato extends CActiveRecord { ); } - public function getCssClassEstado() { - return "estado" . array_search($this->id_estado, $this->opcionesEstado); - } - - /** - * Devuelve la lista de estados permitidos para un candidato. - * @return array lista de estados permitidos - */ - public function getOpcionesEstado() { - return array( - 0 => '510', - 1 => '511', - 2 => '520', - 3 => '530', - 4 => '540', - 5 => '560', - 6 => '600', - ); - } - /** * Returns the static model of the specified AR class. * @param string $className active record class name. diff --git a/www/themes/profind/views/candidato/create.php b/www/themes/profind/views/candidato/create.php index f830b67..529dcd7 100644 --- a/www/themes/profind/views/candidato/create.php +++ b/www/themes/profind/views/candidato/create.php @@ -1,5 +1,7 @@ pageTitle = Yii::t('profind', 'Nuevo candidato'); $this->breadcrumbs = array( diff --git a/www/themes/profind/views/candidato/index.php b/www/themes/profind/views/candidato/index.php index 6277dbd..760fcb7 100644 --- a/www/themes/profind/views/candidato/index.php +++ b/www/themes/profind/views/candidato/index.php @@ -1,4 +1,7 @@ pageTitle = Yii::t('profind', 'BD Candidatos'); @@ -11,7 +14,6 @@ // Contenido //echo $this->renderPartial('_form', array('model' => $model)); - ?> diff --git a/www/themes/profind/views/candidato/update.php b/www/themes/profind/views/candidato/update.php index 8aa49f0..101e080 100644 --- a/www/themes/profind/views/candidato/update.php +++ b/www/themes/profind/views/candidato/update.php @@ -1,5 +1,7 @@ pageTitle = Yii::t('profind', 'Modificación de candidato'); $this->breadcrumbs = array( diff --git a/www/themes/profind/views/layouts/main.php b/www/themes/profind/views/layouts/main.php index c1360c9..b1a6351 100644 --- a/www/themes/profind/views/layouts/main.php +++ b/www/themes/profind/views/layouts/main.php @@ -124,7 +124,7 @@ breadcrumbs)): ?> widget('zii.widgets.CBreadcrumbs', array( - 'homeLink' => CHtml::link(Yii::t('intranet', 'Tablero'), array('/site/index')), + 'homeLink' => CHtml::link(Yii::t('intranet', 'Home'), array('/site/index')), 'tagName' => 'ul', 'links' => $this->breadcrumbs, 'activeLinkTemplate' => '
  • {label}
  • ', diff --git a/www/themes/profind/views/site/index.php b/www/themes/profind/views/site/index.php new file mode 100644 index 0000000..fff22f5 --- /dev/null +++ b/www/themes/profind/views/site/index.php @@ -0,0 +1,15 @@ +pageTitle = Yii::app()->name; +?> + +
    +

    Bienvenido a name); ?>

    +

    La herramienta de los Agentes de Selección de personal informático.

    +

    Con PROFIND publica tu oferta en milésimas de segundo a las principales redes sociales, grupos, páginas, listas y portales de empleo web alcanzando a cientos, miles de personas..., y entre ellas el Candidato que buscas.

    +

    Ver más »

    +
    +