fitness-web/backend/views/inventory-group/view.php

60 lines
1.3 KiB
PHP

<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\grid\GridView;
use yii\base\Widget;
/* @var $this yii\web\View */
/* @var $model common\models\InventoryGroup */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/inventory_group', 'Leltár csoportok'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="inventory-group-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/inventory_group', 'Módosít'), ['update', 'id' => $model->id_inventory_group], ['class' => 'btn btn-primary']) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id_inventory_group',
'name',
'id_product_category',
'created_at',
],
]) ?>
<h2>Termékek a csoportban</h2>
<?php echo GridView::widget([
'dataProvider' => $products,
'columns' => [
[
'attribute' =>'id_product',
'label' => 'Termék azon'
],
[
'attribute' =>'name',
'label' => 'Termék neve'
],
[
'attribute' =>'id_account',
'value' => 'accountName',
'label' => 'Kassza'
]
]
])?>
</div>