init
This commit is contained in:
27
vendor/yii2mod/yii2-rbac/views/route/index.php
vendored
Normal file
27
vendor/yii2mod/yii2-rbac/views/route/index.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Json;
|
||||
use yii2mod\rbac\RbacRouteAsset;
|
||||
|
||||
RbacRouteAsset::register($this);
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $routes array */
|
||||
|
||||
$this->title = Yii::t('yii2mod.rbac', 'Routes');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
$this->render('/layouts/_sidebar');
|
||||
?>
|
||||
<h1><?php echo Html::encode($this->title); ?></h1>
|
||||
<?php echo Html::a(Yii::t('yii2mod.rbac', 'Refresh'), ['refresh'], [
|
||||
'class' => 'btn btn-primary',
|
||||
'id' => 'btn-refresh',
|
||||
]); ?>
|
||||
<?php echo $this->render('../_dualListBox', [
|
||||
'opts' => Json::htmlEncode([
|
||||
'items' => $routes,
|
||||
]),
|
||||
'assignUrl' => ['assign'],
|
||||
'removeUrl' => ['remove'],
|
||||
]); ?>
|
||||
Reference in New Issue
Block a user