title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('user', 'Roles'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>

'btn btn-default']) ?> $model->name], ['class' => 'btn btn-primary']) ?> $model->name], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'), 'method' => 'post', ], ]) ?>

$model, 'attributes' => [ [ 'attribute' => 'name', 'label' => Yii::t('user', 'Role Name'), ], [ 'attribute' => 'description', 'label' => Yii::t('user', 'Role Description'), ], [ 'attribute' => 'ruleName', 'label' => Yii::t('user', 'Rule Name'), ], ], ]) ?>
name !== 'admin'): ?>

field($itemsForm, 'roles')->widget( Select2::classname(), [ 'name' => 'childrenRoles', 'data' => $roles, 'size' => Select2::SMALL, 'options' => ['placeholder' => Yii::t('user', 'Select role...'), 'multiple' => true], 'pluginOptions' => [ 'allowClear' => true ], ])->label(false); ?>

field($itemsForm, 'permissions')->widget( Select2::classname(), [ 'name' => 'childrenPermissions', 'data' => $permissions, 'size' => Select2::SMALL, 'options' => ['placeholder' => Yii::t('user', 'Select permission...'), 'multiple' => true], 'pluginOptions' => [ 'allowClear' => true ], ])->label(false); ?>
'btn btn-primary']) ?>