<?php $this->breadcrumbs = array(Yii::t('app', 'Users')=>array('index'), $model->id=>array('view','id'=>$model->id), Yii::t('app', 'Update')); ?>
<?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', 'View User'),'url'=>array('view','id'=>$model->id),'auth'=>array('manage_users','user_view')),); ?>
<?php if(user()->checkAccess('pdf_view_repository')) { ?>
  <?php if(user()->model->id == $user->id || user()->checkAccess('pdf_view_repository_full')) { ?>
    <?php $this->menu[] = array('label'=>t('View exported PDF'),'url'=>array('pdfExport/pdfRepository', 'id'=>$user->id)); ?>
  <?php } ?>
<?php } ?>
<h2>
  <?php echo htmlspecialchars(Yii::t('app', 'Update User'),ENT_QUOTES,'UTF-8'); ?>
  <?php echo htmlspecialchars("#{$model->id}",ENT_QUOTES,'UTF-8'); ?>
</h2>
<?php $this->renderPartial('_form',array('model'=>$model, 'isUpdate'=>true)); ?>
