<?php $this->breadcrumbs = array( $model->label(2) => array('index'), GxHtml::valueEx($model), ); $this->menu=array( array('label'=>Yii::t('app', 'Listar') . ' ' . $model->label(2), 'url'=>array('index')), array('label'=>Yii::t('app', 'Registrar nuevo') . ' ' . $model->label(), 'url'=>array('create')), array('label'=>Yii::t('app', 'Actualizar') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->PK_MZGTCAMPUS)), ////array('label'=>Yii::t('app', 'Eliminar') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->PK_MZGTCAMPUS), 'confirm'=>'Are you sure you want to delete this item?')), array('label'=>Yii::t('app', 'Administrar') . ' ' . $model->label(2), 'url'=>array('admin')), ); ?> <h1><?php echo Yii::t('app', 'Vista') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1> <?php $this->widget('zii.widgets.CDetailView', array( 'data' => $model, 'attributes' => array( 'PK_MZGTCAMPUS', 'MZGTCAMPUS_NOMBRE', 'MZGTCAMPUS_BANNER', 'MZGTCAMPUS_ESTADO:boolean:', array( 'name'=>'MZGTCAMPUS_ESTADO', //'value'=>('MZGTCAMPUS_ESTADO' == 0) ? Yii::t('app', 'Inactivo') : Yii::t('app', 'Activo'), ) ), )); ?> <h2><?php echo GxHtml::encode($model->getRelationLabel('mzgtdepartamentoses')); ?></h2> <?php echo GxHtml::openTag('ul'); foreach($model->mzgtdepartamentoses as $relatedModel) { echo GxHtml::openTag('li'); echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('mzgtdepartamentos/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul');