|
- <?php
-
- use yii\helpers\Html;
- use yii\grid\GridView;
- use yii\widgets\Pjax;
-
- /* @var $this yii\web\View */
- /* @var $searchModel common\models\searchRole */
- /* @var $dataProvider yii\data\ActiveDataProvider */
-
- $this->title = 'Base Roles';
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="iframe_box base-role-index">
-
- <h1><?= Html::encode($this->title) ?></h1>
- <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
-
- <?php Pjax::begin(); ?>
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- 'filterModel' => $searchModel,
- 'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
-
- 'ID',
- 'MENU_TITLE',
- 'ROLE_NAME',
- 'PARENT_MENU_ID',
- 'MENU_ICON',
- 'CANCEL_FLAG',
- // 'CREATE_USER_ID',
- // 'CREATE_TIME',
- // 'UPDATE_USER_ID',
- // 'UPDATE_TIME',
- // 'TARGET',
- // 'SEQ',
- // 'NOTE',
-
- [
- 'class' => 'yii\grid\ActionColumn',
- 'template' => '{create} {view} {update} {delete}',
- 'buttons' => [
- 'create' => function ($url, $model, $key) {
- /* @var $model \common\models\BaseRole */
- return Html::a('<span class="glyphicon glyphicon-plus"></span>', \yii\helpers\Url::to(['create', 'pid' => $model->PARENT_MENU_ID, 'role'=> $model->ROLE_NAME]));
- },
- ]
- ],
- ],
- ]); ?>
- <?php Pjax::end(); ?></div>
|