55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Procurement */
|
|
|
|
$this->title = Yii::t('common/procurement', 'Beszerzés módosítása' );
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/procurement', 'Procurements'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = ['label' => $model->id_procurement, 'url' => ['view', 'id' => $model->id_procurement]];
|
|
$this->params['breadcrumbs'][] = Yii::t('common/procurement', 'Update');
|
|
?>
|
|
<div class="procurement-update">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id_procurement',
|
|
[
|
|
'attribute' => 'id_warehouse',
|
|
'value' => $model->warehouseName,
|
|
|
|
],
|
|
[
|
|
'attribute' => 'id_user',
|
|
'value' => $model->userName,
|
|
|
|
],
|
|
[
|
|
'attribute' => 'id_product',
|
|
'value' => $model->productName,
|
|
|
|
],
|
|
'count',
|
|
'stock',
|
|
'purchase_price',
|
|
[
|
|
'attribute' => 'description',
|
|
'value' => nl2br($model->description),
|
|
'format' => 'raw'
|
|
],
|
|
'created_at:datetime',
|
|
],
|
|
]) ?>
|
|
|
|
<?= $this->render('_form_update', [
|
|
'model' => $model,
|
|
]) ?>
|
|
|
|
</div>
|