fitness-web/backend/views/waste/create.php
2016-05-08 08:56:42 +02:00

52 lines
1.1 KiB
PHP

<?php
use yii\helpers\Html;
use backend\assets\WasteCreateAsset;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\models\Waste */
$this->title = Yii::t('common/waste', 'Új selejt');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/waste', 'Selejtek'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
WasteCreateAsset::register($this);
$options = [];
$options['products'] = $products;
$options['url_product_find'] = Url::toRoute(['product/find']);
$this->registerJs(' new WasteCreate( '. json_encode($options) .' );');
?>
<div class="waste-create">
<h1><?= Html::encode($this->title) ?></h1>
<div class="row">
<div class="col-md-6">
<table class="table table-striped">
<tr>
<th>Terméknév</th>
<td class="product-name"></td>
</tr>
<tr>
<th>Mennyiség</th>
<td class="product-stock"></td>
</tr>
<tr>
<th>Termék kategória</th>
<td class="product-category"></td>
</tr>
</table>
</div>
</div>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>