fitness-web/frontend/views/product/index.php
2015-09-30 15:24:16 +02:00

46 lines
1.1 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\ProductSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('frontend/product', 'Products');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="product-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a(Yii::t('frontend/product', 'Create Product'), ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
'id_product',
'id_product_category',
'id_account',
'product_number',
'barcode',
// 'purchase_price',
// 'sale_price',
// 'profit_margins',
// 'status',
// 'description',
// 'created_at',
// 'updated_at',
// 'stock',
// 'name',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>