fix formatting

This commit is contained in:
Antonio Ramirez
2016-12-14 02:50:12 +01:00
parent f3f4b31bb4
commit 3ba01b4674
140 changed files with 512 additions and 523 deletions

View File

@ -1,8 +1,8 @@
<?php
/**
* @var $this yii\web\View
* @var $model \Da\User\Model\Role
* @var yii\web\View
* @var $model \Da\User\Model\Role
*/
use Da\User\Helper\AuthHelper;
use kartik\select2\Select2;
@ -31,7 +31,7 @@ $unassignedItems = Yii::$container->get(AuthHelper::class)->getUnassignedItems($
'data' => $unassignedItems,
'options' => [
'id' => 'children',
'multiple' => true
'multiple' => true,
],
]
) ?>

View File

@ -1,11 +1,10 @@
<?php
/**
* @var $model \Da\User\Model\Role
* @var $this yii\web\View
* @var $unassignedItems string[]
* @var \Da\User\Model\Role
* @var $this yii\web\View
* @var $unassignedItems string[]
*/
$this->title = Yii::t('user', 'Create new role');
$this->params['breadcrumbs'][] = $this->title;
@ -17,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
'_form',
[
'model' => $model,
'unassignedItems' => $unassignedItems
'unassignedItems' => $unassignedItems,
]
) ?>

View File

@ -3,13 +3,12 @@ use yii\grid\ActionColumn;
use yii\grid\GridView;
use yii\helpers\Url;
/**
/*
* @var $dataProvider array
* @var $searchModel \Da\User\Search\RoleSearch
* @var $this yii\web\View
*/
$this->title = Yii::t('user', 'Roles');
$this->params['breadcrumbs'][] = $this->title;
@ -27,33 +26,33 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'name',
'header' => Yii::t('user', 'Name'),
'options' => [
'style' => 'width: 20%'
'style' => 'width: 20%',
],
],
[
'attribute' => 'description',
'header' => Yii::t('user', 'Description'),
'options' => [
'style' => 'width: 55%'
'style' => 'width: 55%',
],
],
[
'attribute' => 'rule_name',
'header' => Yii::t('user', 'Rule name'),
'options' => [
'style' => 'width: 20%'
'style' => 'width: 20%',
],
],
[
'class' => ActionColumn::className(),
'template' => '{update} {delete}',
'urlCreator' => function ($action, $model) {
return Url::to(['/user/role/' . $action, 'name' => $model['name']]);
return Url::to(['/user/role/'.$action, 'name' => $model['name']]);
},
'options' => [
'style' => 'width: 5%'
'style' => 'width: 5%',
],
]
],
],
]
) ?>

View File

@ -1,11 +1,10 @@
<?php
/**
* @var $model \Da\User\Model\Role
* @var $this yii\web\View
* @var $unassignedItems string[]
* @var \Da\User\Model\Role
* @var $this yii\web\View
* @var $unassignedItems string[]
*/
$this->title = Yii::t('user', 'Update role');
$this->params['breadcrumbs'][] = $this->title;
@ -17,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
'_form',
[
'model' => $model,
'unassignedItems' => $unassignedItems
'unassignedItems' => $unassignedItems,
]
) ?>