Created
August 28, 2011 10:51
-
-
Save yaoquan/1176528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $this->breadcrumbs=array( | |
| 'Groups'=>array('index'), | |
| $model->name, | |
| ); | |
| $this->menu=array( | |
| array('label'=>'List Groups', 'url'=>array('index')), | |
| array('label'=>'Create Groups', 'url'=>array('create')), | |
| array('label'=>'Update Groups', 'url'=>array('update', 'id'=>$model->id)), | |
| array('label'=>'Delete Groups', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')), | |
| array('label'=>'Manage Groups', 'url'=>array('admin')), | |
| ); | |
| ?> | |
| <h1>View Groups #<?php echo $model->id; ?></h1> | |
| <?php $this->widget('zii.widgets.CDetailView', array( | |
| 'data'=>$model, | |
| 'attributes'=>array( | |
| 'id', | |
| array( | |
| 'label' => 'Parent', | |
| 'type' => 'raw', | |
| 'value' => CHtml::link(CHtml::encode($model->parentGroup->name), | |
| array('groups/'.$model->parentId)), | |
| ), | |
| 'path', | |
| 'name', | |
| 'description', | |
| 'isTeam', | |
| 'avatar', | |
| 'created', | |
| array( | |
| 'label' => 'Created By', | |
| 'type' => 'raw', | |
| 'value' => CHtml::link(CHtml::encode($model->createdBy->profile->firstname . ' ' . $model->createdBy->profile->lastname), | |
| array('user/user/view','id'=>$model->createdBy->id)), | |
| ), | |
| 'updated', | |
| 'status', | |
| ), | |
| )); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment