|
|
@ -16,6 +16,12 @@ use antgoods\goods\models\ars\Supplier; |
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'image')->widget(\iron\widgets\Upload::className(), [ |
|
|
|
'url' => 'upload', |
|
|
|
'deleteUrl' => 'imageDel', |
|
|
|
'dragdropWidth'=> 800 |
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择']) ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
|
|
|
@ -56,12 +62,6 @@ use antgoods\goods\models\ars\Supplier; |
|
|
|
|
|
|
|
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'image')->widget(\iron\widgets\Upload::className(), [ |
|
|
|
'url' => 'upload', |
|
|
|
'deleteUrl' => 'imageDel', |
|
|
|
'dragdropWidth'=> 800 |
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'model_id')->textInput() ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'is_sale')->radioList($model::$isSale) ?>
|
|
|
|