fast inventory item edit

This commit is contained in:
2016-08-08 18:46:58 +02:00
parent e79187c50e
commit c5bfae9ec1
5 changed files with 74 additions and 53 deletions

View File

@@ -175,17 +175,20 @@ $this->registerJs('inventoryItemIndex.init( '. json_encode($options) .' );');
],
]) ;
}
]
],
'urlCreator' => function($action, $model, $key, $index){
$result = "";
if ( $action == 'update'){
$result = Url::toRoute( [ 'update-item' ,'id' => $model['item_id_inventory_item']]);
}
return $result;
}
] ;
}
echo GridView::widget( [
'dataProvider' => $dataProvider,
'columns' => $columns
]);
?>