<?php use mdm\admin\AnimateAsset;use yii\helpers\Html;use yii\helpers\Json;use yii\web\YiiAsset;use yii\widgets\DetailView;use yii\helpers\Url;$context=$this->context;$labels=$context->labels();$this->title='Menu Access';$this->params['breadcrumbs'][]=['label'=>Yii::t('rbac-admin',$labels['Items']),'url'=>['index']];$this->params['breadcrumbs'][]=$this->title;AnimateAsset::register($this);YiiAsset::register($this);$opts=Json::htmlEncode([ 'items'=>$model->getItems(),]);$this->registerJs("var _opts = {$opts};");$this->registerJs($this->render('_script.js'));$animateIcon=' <i class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></i>';?><div class="content-page role"><div class="content-page-header"><?=Html::encode($this->title)?></div><div class="content-page-content config-content container-fluid"><div class="row"><div class="col-sm-12"><?=DetailView::widget([ 'model'=>$model,'attributes'=>[ 'name:text:Rule Name','description:ntext',],'template'=>'<tr><th style="width:25%">{label}</th><td>{value}</td></tr>',]);?></div></div><div class="row"><div class="col-sm-5"><input class="form-control search" data-target="available" placeholder="<?=Yii::t('rbac-admin','Search for available');?>"><select multiple size="20" class="form-control list" data-target="available"></select></div><div class="col-sm-2 text-center"><br><br><?=Html::a('&gt;&gt;'.$animateIcon,['assign','id'=>$model->name],[ 'class'=>'btn btn-success btn-assign','data-target'=>'available','title'=>Yii::t('rbac-admin','Assign'),]);?><br><br><?=Html::a('&lt;&lt;'.$animateIcon,['remove','id'=>$model->name],[ 'class'=>'btn btn-danger btn-assign','data-target'=>'assigned','title'=>Yii::t('rbac-admin','Remove'),]);?></div><div class="col-sm-5"><input class="form-control search" data-target="assigned" placeholder="<?=Yii::t('rbac-admin','Search for assigned');?>"><select multiple size="20" class="form-control list" data-target="assigned"></select></div></div></div><div class="content-page-footer text-right"><a href="<?=Url::to(['/admin/role'])?>" class="btn btn-primary">BACK TO ROLE</a></div></div>