<?php $this->breadcrumbs=array( Yii::t('app', 'Users')=>array('index'), $model->id ); ?>
<?php $this->menu=array(                                                                                                            array('label'=>Yii::t('app', 'Manage Users'),'url'=>array('index'), 'auth'=>array('manage_users')),array('label'=>Yii::t('app', 'Create User'),'url'=>array('create'), 'auth'=>array('manage_users','user_create')),array('label'=>Yii::t('app', 'Update User'),'url'=>array('update','id'=>$model->id), 'auth'=>array('manage_users','user_update')),array('label'=>Yii::t('app', 'Delete User'),'url'=>array('delete','id'=>$model->id), 'auth'=>array('manage_users','user_delete'),'confirm'=>Yii::t('app', 'Are you sure you want to delete this item?')),); ?>
<?php $authInfos = $model->getFullAuthLabelsArray();; ?>
<?php $rls = $authInfos[2]; ?>
<?php $tks = $authInfos[1]; ?>
<?php $ops = $authInfos[0]; ?>
<?php $roles = implode(', ',$rls); ?>
<?php $tasks = implode(', ',$tks); ?>
<?php $operations = implode(', ',$ops); ?>
<h2>
  <?php echo htmlspecialchars(Yii::t('app', 'View user'),ENT_QUOTES,'UTF-8'); ?>
  <?php echo htmlspecialchars("#{$model->id}",ENT_QUOTES,'UTF-8'); ?>
</h2>
<?php $this->widget('bootstrap.widgets.TbDetailView',array('data'=>$model,'attributes'=>array('id','username','email','last_name','first_name','matriculation_number','status','create_time','update_time','can_change_password','password_last_update','password_timeout',array('name'=>'apikey', 'visible'=>user()->checkAccess('user_view_apikey')),array('name'=>('Roles'),'value'=>$roles),array('name'=>('Tasks'),'value'=>$tasks),array('name'=>('Operations'),'value'=>$operations),),)); ?>
