fitness-web/backend/views/procurement/index.php
2015-09-25 08:57:05 +02:00

50 lines
1.2 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\ProcurementSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/procurement', 'Procurements');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="procurement-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a(Yii::t('common/procurement', 'Create Procurement'), ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'id_warehouse',
'value' => 'wareHouseName'
],
'id_user',
'id_product',
'count',
'stock',
'purchase_price',
// 'description',
'created_at:datetime',
'updated_at:datetime',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view}'
],
],
]); ?>
</div>