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.
		
		
		
		
			
				
					43 lines
				
				1.2 KiB
			
		
		
			
		
	
	
					43 lines
				
				1.2 KiB
			| 
											8 years ago
										 | <?php
 | ||
|  | 
 | ||
|  | use yii\grid\ActionColumn;
 | ||
|  | use yii\helpers\Html;
 | ||
|  | use yii\grid\GridView;
 | ||
|  | 
 | ||
|  | /* @var $this yii\web\View */
 | ||
|  | /* @var $dataProvider yii\data\ArrayDataProvider */
 | ||
|  | 
 | ||
|  | $this->title = Yii::t('user', 'Permissions');
 | ||
|  | $this->params['breadcrumbs'][] = $this->title;
 | ||
|  | ?>
 | ||
|  | <div class="users-rbac-permission-index">
 | ||
|  | 
 | ||
|  |     <p>
 | ||
|  |         <?= Html::a(Yii::t('user', 'Create Permission'), ['create'], ['class' => 'btn btn-success']) ?>
 | ||
|  |     </p>
 | ||
|  | 
 | ||
|  |     <div class="box box-default">
 | ||
|  |         <div class="box-body">
 | ||
|  |             <?= GridView::widget([
 | ||
|  |                 'dataProvider' => $dataProvider,
 | ||
|  |                 'columns' => [
 | ||
|  |                     [
 | ||
|  |                         'attribute' => 'name',
 | ||
|  |                         'label' => Yii::t('user', 'Permission Name'),
 | ||
|  |                     ],
 | ||
|  |                     [
 | ||
|  |                         'attribute' => 'description',
 | ||
|  |                         'label' => Yii::t('user', 'Permission Description'),
 | ||
|  |                     ],
 | ||
|  |                     [
 | ||
|  |                         'class' => ActionColumn::class,
 | ||
|  |                         'options' => ['style' => 'width: 100px;'],
 | ||
|  |                         'contentOptions' => ['class' => 'text-center'],
 | ||
|  |                     ],
 | ||
|  |                 ],
 | ||
|  |             ]); ?>
 | ||
|  |         </div>
 | ||
|  |     </div>
 | ||
|  | 
 | ||
|  | </div>
 |