<?php use yii\helpers\Html;use yii\grid\GridView;use mdm\admin\components\RouteRule;use mdm\admin\components\Configs;use yii\helpers\Url;use mdm\admin\components\Helper;$context=$this->context;$labels=$context->labels();$this->title='Role';$this->params['breadcrumbs'][]=$this->title;$rules=array_keys(Configs::authManager()->getRules());$rules=array_combine($rules,$rules);unset($rules[RouteRule::RULE_NAME]);?><div class="content-page role"><div class="content-page-header updacc-header"><a href="<?=Url::to(['/admin/user'])?>">User</a><span><?=Html::encode($this->title)?></span><a href="<?=Url::to(['/admin/role/create'])?>" class="btn btn-primary pull-right role-header-create">Create Role</a></div><div class="content-page-content updacc-content container-fluid"><?=GridView::widget([ 'dataProvider'=>$dataProvider,'columns'=>[ [ 'attribute'=>'name','label'=>Yii::t('rbac-admin','Role Name'),],[ 'attribute'=>'description','label'=>Yii::t('rbac-admin','Description'),'format'=>'ntext',],[ 'class'=>'yii\grid\ActionColumn','template'=>Helper::filterActionColumn(['view','update','delete']),'buttons'=>[ 'view'=>function($url,$model){$options=[ 'title'=>Yii::t('rbac-admin','Menu Access'),'aria-label'=>Yii::t('rbac-admin','Menu Access'),'class'=>'role-content-icon','data-id'=>$model->name,];return Html::a('<i class="material-icons">playlist_add_check</i>',$url,$options);},'update'=>function($url,$model){$options=[ 'title'=>Yii::t('rbac-admin','Update Info'),'aria-label'=>Yii::t('rbac-admin','Update Info'),'class'=>'role-content-icon','data-id'=>$model->name,];return Html::a('<i class="material-icons">edit</i>',$url,$options);},'delete'=>function($url,$model){$options=[ 'title'=>Yii::t('rbac-admin','Delete'),'aria-label'=>Yii::t('rbac-admin','Delete'),'class'=>'role-content-icon','data-confirm'=>Yii::t('rbac-admin','Are you sure you want to delete this user?'),'data-method'=>'post','data-pjax'=>'0',];return Html::a('<i class="material-icons">delete_outline</i>',$url,$options);}] ] ],'summary'=>'','tableOptions'=>['class'=>'table'],])?></div></div>