diff --git a/www/protected/views/idioma/_form.php b/www/protected/views/idioma/_form.php new file mode 100644 index 0000000..03513a1 --- /dev/null +++ b/www/protected/views/idioma/_form.php @@ -0,0 +1,41 @@ +beginWidget('CActiveForm', array( + 'id'=>'idioma-form', + 'enableAjaxValidation'=>false, +)); ?> + + +
+
+ +

Los campos marcados con * son obligatorios.

+
+ + errorSummary($model, "", "", array('class'=>"notification msgerror")); ?> +
+
+ +
+

+ + Datos del idioma + +

+
+
+ labelEx($model,'descripcion'); ?> +
+ textField($model,'descripcion',array('maxlength'=>255,'class'=>'mf')); ?> + error($model,'descripcion', array('class'=>'errortext')); ?> +
+
+ +
+ +
+
+
+ +
+ +endWidget(); ?> + diff --git a/www/protected/views/idioma/_search.php b/www/protected/views/idioma/_search.php new file mode 100644 index 0000000..d8401f7 --- /dev/null +++ b/www/protected/views/idioma/_search.php @@ -0,0 +1,24 @@ +
+ +beginWidget('CActiveForm', array( + 'action'=>Yii::app()->createUrl($this->route), + 'method'=>'get', +)); ?> + +
+ label($model,'id'); ?> + textField($model,'id'); ?> +
+ +
+ label($model,'descripcion'); ?> + textField($model,'descripcion',array('size'=>60,'maxlength'=>255)); ?> +
+ +
+ +
+ +endWidget(); ?> + +
\ No newline at end of file diff --git a/www/protected/views/idioma/create.php b/www/protected/views/idioma/create.php new file mode 100644 index 0000000..5dd08cb --- /dev/null +++ b/www/protected/views/idioma/create.php @@ -0,0 +1,16 @@ +breadcrumbs=array( + Yii::t('intranet', 'Idiomas')=>array('index'), + Yii::t('intranet', 'Nuevo idioma'), +); +$this->menu=array( + array( + 'label'=>'Lista de idiomasLista de idiomas', + 'url'=>array('index'), + 'linkOptions'=>array('class'=>'iconlink'), + ), +); +$this->pageTitle=Yii::t('intranet', 'Nuevo idioma'); +?> + +renderPartial('_form', array('model'=>$model)); ?> \ No newline at end of file diff --git a/www/protected/views/idioma/index.php b/www/protected/views/idioma/index.php new file mode 100644 index 0000000..a269ec3 --- /dev/null +++ b/www/protected/views/idioma/index.php @@ -0,0 +1,84 @@ +breadcrumbs = array( + Yii::t('Intranet', 'Idiomas'), +); + +$this->menu = array( + array( + 'label'=>'' . Yii::t('intranet', 'Nuevo idioma') . '' . Yii::t('intranet', 'Nuevo idioma'), + 'url'=>array('create'), + 'linkOptions'=>array('class'=>'iconlink'), + ), +); + +$this->pageTitle = Yii::t('intranet', 'Gestión de idiomas'); + +?> + + +
+ +
+
+
+ widget('application.extensions.PageSize.PageSize', array( + 'mGridId' => 'idioma-grid', + 'mPageSize' => @$_GET['pageSize'], + 'mDefPageSize' => Yii::app()->params['defaultPageSize'], + 'mPageSizeOptions' => Yii::app()->params['pageSizeOptions'], + )); + ?> +
+ +
+ +
+
+ Yii::t('intranet', 'Acciones'), + 'class'=>'CButtonColumn', + 'headerHtmlOptions'=>array( + 'style' => 'width:55px;', + 'class' => 'head1', + ), + 'template'=>'{update}{delete}', + 'cssClassExpression' => '"con1"', + ), + array( + 'name' => 'descripcion', + 'headerHtmlOptions'=>array( + 'class' => 'head0', + ), + 'cssClassExpression' => '"con0"', + ), + ); + + $dataProvider = $model->search(); + $pageSize = Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']); + $dataProvider->getPagination()->setPageSize($pageSize); + + $this->widget('application.extensions.SelGridView', array( + 'id'=>'idioma-grid', + 'dataProvider'=>$dataProvider, + 'columns'=>$columns, + 'filter'=>$model, + 'filterPosition' => 'footer', + 'cssFile' => Yii::app()->baseUrl . '/css/gridview2.css', + 'itemsCssClass' => 'display', + 'pagerCssClass' => 'dataTables_paginate', + 'template' => '{items}{summary}{pager}', + 'emptyText' => Yii::t('intranet', 'No hay idiomas'), + 'summaryCssClass' => 'dataTables_info', + 'summaryText' => 'Mostrando registros del {start} al {end} de {count} en total.', + 'selectableRows' => 1, + )); + + ?> +
diff --git a/www/protected/views/idioma/update.php b/www/protected/views/idioma/update.php new file mode 100644 index 0000000..d57590e --- /dev/null +++ b/www/protected/views/idioma/update.php @@ -0,0 +1,21 @@ +breadcrumbs=array( + Yii::t('intranet', 'Idioma')=>array('index'), + Yii::t('intranet', 'Modificar idioma'), +); +$this->menu=array( + array( + 'label'=>'Lista de idiomasLista de idiomas', + 'url'=>array('index'), + 'linkOptions'=>array('class'=>'iconlink'), + ), + array( + 'label'=>'Nuevo idiomaNuevo idioma', + 'url'=>array('create'), + 'linkOptions'=>array('class'=>'iconlink2'), + ), +); +$this->pageTitle=Yii::t('intranet', 'Modificar idioma ') . $model->descripcion; +?> + +renderPartial('_form', array('model'=>$model)); ?> \ No newline at end of file diff --git a/www/protected/views/layouts/default.php b/www/protected/views/layouts/default.php index c075c24..b88e309 100644 --- a/www/protected/views/layouts/default.php +++ b/www/protected/views/layouts/default.php @@ -90,9 +90,9 @@ ), array( 'label'=>Yii::t('intranet', 'Sistema'), - 'url'=>array('/usuario/index'), + 'url'=>array('/sistema/index'), 'linkOptions'=>array('class'=>'sistema'), - 'active' => ($this->getId() == 'usuario') + 'active' => ($this->getId() == 'sistema') ), ), )); ?> diff --git a/www/protected/views/layouts/tablero.php b/www/protected/views/layouts/tablero.php index fabdc12..018a826 100644 --- a/www/protected/views/layouts/tablero.php +++ b/www/protected/views/layouts/tablero.php @@ -88,9 +88,9 @@ ), array( 'label'=>Yii::t('intranet', 'Sistema'), - 'url'=>array('/usuario'), + 'url'=>array('/sistema'), 'linkOptions'=>array('class'=>'sistema'), - 'active' => ($this->getId() == 'usuario') + 'active' => ($this->getId() == 'sistema') ), ), )); ?> diff --git a/www/protected/views/sistema/index.php b/www/protected/views/sistema/index.php new file mode 100644 index 0000000..f650110 --- /dev/null +++ b/www/protected/views/sistema/index.php @@ -0,0 +1,11 @@ +breadcrumbs = array( + Yii::t('intranet', 'Sistema'), +); +?> + + +