inventory changes
This commit is contained in:
@@ -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',
|
||||
]) ;
|
||||
}
|
||||
]
|
||||
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user