inventory changes

This commit is contained in:
2016-03-11 21:46:59 +01:00
parent 80507fce43
commit 0fc5ab01bc
11 changed files with 160 additions and 21 deletions

View File

@@ -25,7 +25,8 @@ $this->params['breadcrumbs'][] = $this->title;
'columns' => [
'id_inventory',
'id_user',
'name',
[ 'attribute' => 'id_user', "value" =>"userName" ],
'created_at:datetime',
['class' => 'yii\grid\ActionColumn',
@@ -34,7 +35,13 @@ $this->params['breadcrumbs'][] = $this->title;
if ( $action == 'view' ){
return Url::to(['inventory-item/index' , 'id'=> $model->id_inventory]);
}
}
},
'buttons' =>[
'view' =>function ($url, $model, $key) {
return Html::a('Részletek', $url,['class' => 'btn btn-xs btn-primary',
]) ;
}
]
],
],