Add waste

This commit is contained in:
2016-05-08 08:56:42 +02:00
parent a6fdfb1c83
commit f8e1f90a8e
28 changed files with 1075 additions and 102 deletions

View File

@@ -0,0 +1,51 @@
<?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>