<?php use yii\helpers\Html;use yii\widgets\ActiveForm;use mdm\admin\components\RouteRule;use mdm\admin\AutocompleteAsset;use yii\helpers\Json;use mdm\admin\components\Configs;$context=$this->context;$labels=$context->labels();$rules=Configs::authManager()->getRules();unset($rules[RouteRule::RULE_NAME]);$source=Json::htmlEncode(array_keys($rules));$js=<<<JS
    $('#rule_name').autocomplete({
        source: $source,
    });
JS;
AutocompleteAsset::register($this);$this->registerJs($js);?><?php $form=ActiveForm::begin(['id'=>'item-form']);?><div class="row"><div class="config-content-left col-md-3">Role Information</div><div class="config-content-right col-md-9"><?=$form->field($model,'name')->textInput(['maxlength'=>64])->label('Role Name')?><?=$form->field($model,'description')->textarea(['rows'=>2])?></div></div>