This commit is contained in:
2024-05-24 15:27:07 +03:00
parent 17df2ce6a9
commit fc1da2c238
643 changed files with 110185 additions and 231 deletions

View File

@ -17,7 +17,9 @@ use yii\bootstrap4\ActiveForm;
<?= $form->field($model, 'article')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'company_id')->dropDownList($companies) ?>
<?= $form->field($model, 'company_id')->dropDownList($companies, ['id' => 'company_select']) ?>
<div class="form-group" id="category_select_container"></div>
<?= $form->field($model, 'type')->dropDownList(\common\models\Product::getType()) ?>

View File

@ -40,6 +40,10 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'company_id',
'value' => $companyService->getCompany($model->company_id)->name ?? null
],
[
'attribute' => 'product_category_id',
'value' => $model->getProductCategory()->one()->title ?? null
],
[
'attribute' => 'type',
'value' => \common\models\Product::getType()[$model->type]