You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

7 years ago
<?php
use yii\helpers\Html;
3 years ago
use yii\rbac\Role;
7 years ago
use yii\widgets\DetailView;
/* @var $this yii\web\View */
3 years ago
/* @var $model Role */
7 years ago
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('user', 'Permissions'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="users-rbac-permission-view">
<p>
3 years ago
<?= Html::a(Yii::t('user', 'Permissions'), ['index'], ['class' => 'btn btn-outline-primary btn-sm']) ?>
<?= Html::a(Yii::t('buttons', 'Edit'), ['update', 'id' => $model->name], ['class' => 'btn btn-primary btn-sm']) ?>
7 years ago
<?= Html::a(Yii::t('buttons', 'Delete'), ['delete', 'id' => $model->name], [
3 years ago
'class' => 'btn btn-danger btn-sm',
7 years ago
'data' => [
'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
</p>
3 years ago
<div class="card">
<div class="card-body">
7 years ago
<?= DetailView::widget([
'model' => $model,
'attributes' => [
[
'attribute' => 'name',
'label' => Yii::t('user', 'Role Name'),
],
[
'attribute' => 'description',
'label' => Yii::t('user', 'Role Description'),
],
[
'attribute' => 'ruleName',
'label' => Yii::t('user', 'Rule Name'),
],
],
]) ?>
</div>
</div>
</div>