title = Yii::t('common/inventory-item', 'Leltár részletei'); $this->params['breadcrumbs'][] = $this->title; InventoryItemIndexAsset::register($this); $options = []; $options['products'] = $productOptions; $this->registerJs('inventoryItemIndex.init( '. json_encode($options) .' );'); ?>

title) ?>

$model, 'attributes' => [ 'id_inventory', 'name', ['attribute'=>'id_user', 'value'=>$model->userName ], ['attribute'=>'id_account', 'value'=>$model->accountName ], 'created_at:datetime', ], ]) ?> render('_search', ['model' => $searchModel]); ?>

Magyarázat:

'xls']),['class' =>'btn btn-primary'])?>

$dataProvider, 'columns' =>[ [ 'attribute' => 'item_created_at', 'label' => 'Létrehozva', 'format' => 'datetime' ], [ 'attribute' => 'item_name', 'label' => 'Név', ], [ 'attribute' => 'user_username', 'label' => 'Felhasználó', ], [ 'attribute' => 'inventory_prev_name', 'label' => 'Utolsó leltár' ], [ 'attribute' => 'item_count_prev', 'label' => 'Előzö leltár (db)' ], [ 'attribute' => 'item_count_in', 'label' => 'Beszerzett mennyiség (db)' ], [ 'attribute' => 'item_count_sold', 'label' => 'Eladott mennyiség (db)', ], [ 'attribute' => 'item_count', 'label' => 'Leltározott mennyiség (db)', ], [ 'attribute' => 'item_count_system', 'label' => 'Rendszer szerinti mennyiség (db)', ], [ 'attribute' => 'item_difference', 'label' => 'Különbség (db)', ], ['class' => 'yii\grid\ActionColumn', 'template' => '{update}', 'urlCreator' => function ($action, $model, $key, $index){ return Url::to(['inventory-item/update', 'id' => $model['item_id_inventory_item' ] ]) ; }, 'buttons' =>[ 'update' =>function ($url, $model, $key) { return Html::a('Módosítás', $url,['class' => 'btn btn-xs btn-success', 'data' => [ ], ]) ; } ] ] ] ]); ?>