Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $this OperationController|TaskController|RoleController */
- /* @var $dataProvider AuthItemDataProvider */
- $this->breadcrumbs = array(
- $this->capitalize($this->getTypeText(true)),
- );
- ?>
- <?php
- $title_this = $this->capitalize($this->getTypeText(true));
- //echo $title_this;
- ?>
- <!------------------------------------------------------------------------------------------------>
- <!-- left part of content -->
- <div class="content_left">
- <?php
- if($title_this == "Roles"){
- $icon = "icon-star";
- $rolezz=false;
- }else if($title_this == "Tasks"){
- $icon = "icon-list-alt";
- $task=false;
- }else{
- $icon = "icon-repeat";
- $operation=false;
- }
- ?>
- <?php
- $box = $this->beginWidget('bootstrap.widgets.TbBox', array(
- 'title' =>$title_this,
- 'headerIcon'=>$icon,
- // when displaying a table, if we include bootstra-widget-table class
- // the table will be 0-padding to the box
- 'htmlOptions' => array('class'=>'bootstrap-widget-table'),
- 'headerButtons' => array(
- array(
- 'class' => 'bootstrap.widgets.TbButtonGroup',
- 'type' => 'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
- 'buttons' => array(
- array('label' => 'Menu', 'url' => '#'), // this makes it split :)
- array('items' => array(
- array('label'=>'User Access/Rights Management', 'itemOptions'=>array('class'=>'nav-header')),
- array('label'=>'Assignments','icon'=>'icon-book', 'url'=>array('/auth/assignment')),
- array('label'=>'Roles','icon'=>'icon-star', 'url'=>array('/auth/role/index'),'visible'=>$rolezz),
- array('label'=>'Tasks','icon'=>'icon-list-alt', 'url'=>array('/auth/task/index'),'visible'=>$task),
- array('label'=>'Operations','icon'=>'icon-repeat', 'url'=>array('/auth/operation/index'),'visible'=>$operation),
- // array('label'=>'Profile Field Management', 'itemOptions'=>array('class'=>'nav-header')),
- //array('label'=>UserModule::t('Manage Profile Field'),'icon'=>'icon-wrench', 'url'=>array('profileField/admin')),
- // '---',
- /* array('label'=>'User Management', 'itemOptions'=>array('class'=>'nav-header')),
- array('label' => 'Manage Users','icon'=>'icon-wrench', 'url' => array('/user/admin')),*/
- )),
- )
- ),
- ),
- ));?>
- <div class="crm_content">
- <?php $this->widget('bootstrap.widgets.TbGridView', array(
- 'type' => 'striped hover',
- 'dataProvider' => $model->search(),
- 'filter'=>$model,
- 'emptyText' => Yii::t('AuthModule.main', 'No {type} found.', array('{type}'=>$this->getTypeText(true))),
- 'template'=>"{items}\n{pager}",
- 'columns' => array(
- array(
- 'name' => 'name',
- 'type'=>'raw',
- 'header' => Yii::t('AuthModule.main', 'System name'),
- 'htmlOptions' => array('class'=>'item-name-column'),
- 'value' => "CHtml::link(\$data->name, array('view', 'name'=>\$data->name))",
- ),
- array(
- 'name' => 'description',
- 'header' => Yii::t('AuthModule.main', 'Description'),
- 'htmlOptions' => array('class'=>'item-description-column'),
- ),
- array(
- 'class'=>'bootstrap.widgets.TbButtonColumn',
- 'viewButtonLabel' => Yii::t('AuthModule.main', 'View'),
- 'viewButtonUrl' => "Yii::app()->controller->createUrl('view', array('name'=>\$data->name))",
- 'updateButtonLabel' => Yii::t('AuthModule.main', 'Edit'),
- 'updateButtonUrl' => "Yii::app()->controller->createUrl('update', array('name'=>\$data->name))",
- 'deleteButtonLabel' => Yii::t('AuthModule.main', 'Delete'),
- 'deleteButtonUrl' => "Yii::app()->controller->createUrl('delete', array('name'=>\$data->name))",
- 'deleteConfirmation' => Yii::t('AuthModule.main', 'Are you sure you want to delete this item?'),
- ),
- ),
- )); ?>
- <?php $this->widget('bootstrap.widgets.TbButton', array(
- 'type' => 'primary',
- 'htmlOptions'=>array('style'=>'float:right;margin-right:10px;margin-top:10px;'),
- 'label' => Yii::t('AuthModule.main', 'Adds {type}', array('{type}' => $this->getTypeText())),
- 'url' => array('create'),
- )); ?>
- </div>
- <?php $this->endWidget(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement