add product

This commit is contained in:
2015-09-24 22:14:09 +02:00
parent fcc18d79f6
commit a2b835225a
15 changed files with 229 additions and 80 deletions

View File

@@ -7,8 +7,8 @@ use yii\helpers\Html;
/* @var $model common\models\Product */
/* @var $accounts common\models\Account[] */
$this->title = Yii::t('common/ticket_type', 'Create Product');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket_type', 'Products'), 'url' => ['index']];
$this->title = Yii::t('common/product', 'Create Product');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/product', 'Products'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="product-create">
@@ -18,6 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= $this->render('_form', [
'model' => $model,
'accounts' => $accounts,
'categories' => $categories ,
]) ?>
</div>