api
This commit is contained in:
@ -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()) ?>
|
||||
|
||||
|
@ -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]
|
||||
|
Reference in New Issue
Block a user