Browse Source

修改商品表单内容

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
9867a31f3b
  1. 12
      vendor/antgoods/goods/src/views/goods/_form.php

12
vendor/antgoods/goods/src/views/goods/_form.php

@ -16,12 +16,6 @@ use antgoods\goods\models\ars\Supplier;
<?php $form = ActiveForm::begin(); ?> <?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, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?> <?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
@ -58,6 +52,12 @@ use antgoods\goods\models\ars\Supplier;
<?= $form->field($model, 'price')->textInput() ?> <?= $form->field($model, 'price')->textInput() ?>
<?= $form->field($model, 'image')->widget(\iron\widgets\Upload::className(), [
'url' => 'upload',
'deleteUrl' => 'imageDel',
'dragdropWidth'=> 800
]) ?>
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?> <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>

Loading…
Cancel
Save