/var/www/vhosts/nabawater/backend/views/role
NameSizeModeActions
create.php4360644editdlrm
index.php36280644editdlrm
update.php4350644editdlrm
_form-bak.php40260644editdlrm
_form.php49950644editdlrm
_search.php9990644editdlrm
Edit: /var/www/vhosts/nabawater/backend/views/role/index.php (3628B)
title = yii::t('backend','Role Management') ?>

title ?> '.' '. Yii::t('backend', 'Create'), ['create'], ['class' => 'btn btn-info d-none d-lg-block m-l-15 pull-right']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => \yii\grid\SerialColumn::class], 'role_name', [ 'attribute' => 'role_status', 'format' => 'raw', 'filter' => [Role::ACTIVE => 'active', Role::INACTIVE => 'Inactive'], 'filterInputOptions' => ['class' => 'select2 form-control col-md-6', 'prompt' => 'All'], 'value' => function (Role $model) { $id = Html::getInputId($model, 'role_status') . "-{$model->getPrimaryKey()}"; $html = Html::activeCheckbox($model, 'role_status', ['data-size'=> 'mini','data-toggle' => 'switch', 'label' => false, 'id' => $id]); $html .= Html::tag('span', Html::label('', $id)); return Html::tag('div', $html, ['class' => 'bootstrap-switch']); } ], 'created_at', [ 'class' => \yii\grid\ActionColumn::class, 'header' => Yii::t('backend', 'Action'), 'template' => '{update}', 'buttons' => [ 'update' => function ($url, $model, $key) { $html = Html::tag('span', '', ['class' => 'fa fa-pencil text-inverse m-r-10']); return Html::a($html, $url); }, ], ], ], ]); ?>