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">
- <div class="bootsrap-headerz">
- <i class="<?php
- if($title_this == "Roles"){
- echo "icon-star iconzz";
- }else if($title_this == "Tasks"){
- echo "icon-list-alt iconzz";
- }else{
- echo "icon-repeat iconzz";
- }
- ?>"></i>
- <h3 class="title_h3"><?php echo $title_this ?></h3>
- <div id="admin_menu" style="position:relative;display: inline-block;float:right">
- <?php
- $this->widget('bootstrap.widgets.TbButtonGroup', array(
- 'size'=>'small',
- 'type' => 'info', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
- 'buttons' => array(
- array('label' => 'Admin', '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')),
- array('label'=>'Tasks','icon'=>'icon-list-alt', 'url'=>array('/auth/task/index')),
- array('label'=>'Operations','icon'=>'icon-repeat', 'url'=>array('/auth/operation/index')),
- array('label'=>'Branch Management','icon'=>'icon-tags', 'url'=>array('../branch')),
- '---',
- // 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')),*/
- ),
- 'htmlOptions'=>array('style'=>'height:18px;'),
- ),
- ),
- ));
- ?>
- </div>
- </div>
- <div class="crm_content">
- <?php $this->widget('bootstrap.widgets.TbGridView', array(
- 'type' => 'striped hover',
- 'dataProvider' => $dataProvider,
- //'filter'=>$dataProvider,
- '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;'),
- 'label' => Yii::t('AuthModule.main', 'Add {type}', array('{type}' => $this->getTypeText())),
- 'url' => array('create'),
- )); ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement