add card.flag implementation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\models\InventorySearch */
|
||||
@@ -28,7 +29,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'created_at:datetime',
|
||||
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{view}'
|
||||
'template' => '{view}',
|
||||
'urlCreator' => function( $action, $model, $key, $index ){
|
||||
if ( $action == 'view' ){
|
||||
return Url::to(['inventory-item/index' , 'id'=> $model->id_inventory]);
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
Reference in New Issue
Block a user