%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/task/11584/cwd/html/ppaobm/backend/theme/adminlte/mdm/item/ |
Upload File : |
<?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; /* @var $this yii\web\View */ /* @var $model mdm\admin\models\AuthItem */ /* @var $form yii\widgets\ActiveForm */ /* @var $context mdm\admin\components\ItemController */ $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); ?> <div class="auth-item-form"> <?php $form = ActiveForm::begin(['id' => 'item-form']); ?> <div class="row"> <div class="col-sm-6"> <?= $form->field($model, 'name')->textInput(['maxlength' => 64]) ?> <?= $form->field($model, 'description')->textarea(['rows' => 2]) ?> </div> <div class="col-sm-6"> <?= $form->field($model, 'ruleName')->textInput(['id' => 'rule_name']) ?> <?= $form->field($model, 'data')->textarea(['rows' => 6]) ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('rbac-admin', 'Create') : Yii::t('rbac-admin', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'name' => 'submit-button']) ?> </div> <?php ActiveForm::end(); ?> </div>