context->getLabels(); $this->title = Yii::t('yii2mod.rbac', $labels['Items']); $this->params['breadcrumbs'][] = $this->title; $this->render('/layouts/_sidebar'); ?>

title); ?>

'btn btn-success']); ?>

5000, 'enablePushState' => false]); ?> $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'name', 'label' => Yii::t('yii2mod.rbac', 'Name'), ], [ 'attribute' => 'ruleName', 'label' => Yii::t('yii2mod.rbac', 'Rule Name'), 'filter' => ArrayHelper::map(Yii::$app->getAuthManager()->getRules(), 'name', 'name'), 'filterInputOptions' => ['class' => 'form-control', 'prompt' => Yii::t('yii2mod.rbac', 'Select Rule')], ], [ 'attribute' => 'description', 'format' => 'ntext', 'label' => Yii::t('yii2mod.rbac', 'Description'), ], [ 'header' => Yii::t('yii2mod.rbac', 'Action'), 'class' => 'yii\grid\ActionColumn', ], ], ]); ?>