<?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>
