summaryrefslogtreecommitdiff
path: root/protected/views/user/view.php
diff options
context:
space:
mode:
authortzur <tzur@ccwn.org>2012-04-15 15:30:09 +0200
committertzur <tzur@ccwn.org>2012-04-15 15:30:09 +0200
commit5b2095abddf9d0596a7715879357e8d9a3b786b2 (patch)
tree0c2b6fdc1484b697b1a3740582a906fb51c1d64f /protected/views/user/view.php
Initial version
Diffstat (limited to 'protected/views/user/view.php')
-rw-r--r--protected/views/user/view.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/protected/views/user/view.php b/protected/views/user/view.php
new file mode 100644
index 0000000..9959b2d
--- /dev/null
+++ b/protected/views/user/view.php
@@ -0,0 +1,31 @@
+<?php
+$this->breadcrumbs=array(
+ 'Users'=>array('index'),
+ $model->id,
+);
+
+$this->menu=array(
+ array('label'=>'List User', 'url'=>array('index')),
+ array('label'=>'Create User', 'url'=>array('create')),
+ array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->id)),
+ array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
+ array('label'=>'Manage User', 'url'=>array('admin')),
+);
+?>
+
+<h1>View User #<?php echo $model->id; ?></h1>
+
+<?php $this->widget('zii.widgets.CDetailView', array(
+ 'data'=>$model,
+ 'attributes'=>array(
+ 'id',
+ 'username',
+ 'algorithm',
+ 'salt',
+ 'password',
+ 'created_at',
+ 'last_login',
+ 'is_active',
+ 'is_super_admin',
+ ),
+)); ?>