From 1d7c98f4c10e911820e15beccc6d819c1c0c18fe Mon Sep 17 00:00:00 2001 From: david Date: Fri, 4 May 2012 09:06:40 +0000 Subject: [PATCH] =?UTF-8?q?Candidatos=20->=20historial=20de=20un=20candida?= =?UTF-8?q?to.=20Ajustes=20en=20presentaci=C3=B3n=20de=20columna=20'Stamp'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@58 77cfc57b-8ef4-1849-9df6-4a38aa5da120 --- www/protected/components/HistorialWidget.php | 9 +++-- www/protected/views/candidato/historial.php | 39 ++++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 www/protected/views/candidato/historial.php diff --git a/www/protected/components/HistorialWidget.php b/www/protected/components/HistorialWidget.php index c46a57d..e5956aa 100644 --- a/www/protected/components/HistorialWidget.php +++ b/www/protected/components/HistorialWidget.php @@ -49,16 +49,17 @@ class HistorialWidget extends ShowAuditTrail { $evalUserLabel = $this->getEvalUserLabelCode(); $columnFormat = array(); $defaultColumnFormat = array( - 'stamp' => array( + 'stamp' => array( + 'type' => 'raw', 'name' => 'stamp', + 'value' => 'Time::timeAgoInWords($data->stamp);', 'header' => Yii::t('intranet','Stamp'), - 'filter' => '', + 'filter' => '', 'headerHtmlOptions'=>array( 'class' => 'head0 sorting', ), 'cssClassExpression' => '"con0"', - - ), + ), 'new_value' => array( 'name' => 'new_value', 'header' => Yii::t('intranet','Nuevo valor'), diff --git a/www/protected/views/candidato/historial.php b/www/protected/views/candidato/historial.php new file mode 100644 index 0000000..12cd7af --- /dev/null +++ b/www/protected/views/candidato/historial.php @@ -0,0 +1,39 @@ +breadcrumbs=array( + Yii::t('intranet', 'Candidatos')=>array('index'), + $model->nombre . ' ' . $model->apellidos=>array('view','id'=>$model->id), + Yii::t('intranet', 'Historial'), + +); + +$this->pageTitle=Yii::t('intranet', 'Candidato') . ' "' . $model->nombre . ' ' . $model->apellidos . '"'; +?> + + +
+
+
+ widget('application.extensions.PageSize.PageSize', array( + 'mGridId' => 'audit-trail-grid', + 'mPageSize' => @$_GET['pageSize'], + 'mDefPageSize' => Yii::app()->params['defaultPageSize'], + 'mPageSizeOptions' => Yii::app()->params['pageSizeOptions'], + )); + ?> +
+ +
+ +
+
+ widget( + 'application.components.HistorialWidget', + array( + 'model' => $model, + ) + ); + ?> +
+