re #25 allow rules edition + assignment
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
use dosamigos\selectize\SelectizeDropDownList;
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
@ -32,7 +33,13 @@ use yii\widgets\ActiveForm;
|
||||
|
||||
<?= $form->field($model, 'description') ?>
|
||||
|
||||
<?= $form->field($model, 'rule') ?>
|
||||
<?= $form->field($model, 'rule')->widget(SelectizeDropDownList::class, [
|
||||
'items' => ArrayHelper::map(Yii::$app->getAuthManager()->getRules(), 'name', 'name'),
|
||||
'options' => [
|
||||
'prompt' => 'Select rule...'
|
||||
]
|
||||
]) ?>
|
||||
|
||||
|
||||
<?= $form->field($model, 'children')->widget(
|
||||
SelectizeDropDownList::class,
|
||||
|
||||
Reference in New Issue
Block a user