Browse Source

增加选择上级分类

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
c7630fa972
  1. 3
      vendor/antgoods/goods/src/views/shop-category/_form.php

3
vendor/antgoods/goods/src/views/shop-category/_form.php

@ -6,6 +6,7 @@ use blobt\widgets\Icheck;
use yii\helpers\Url;
use antgoods\goods\models\ars\Attribute;
use linyao\widgets\Select2;
use antgoods\goods\models\ars\Category;
/* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\ShopCategory */
@ -20,6 +21,8 @@ use linyao\widgets\Select2;
<?= $form->field($model, 'keywords')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn())) ?>
<?= $form->field($model, 'desc')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'sort_order')->textInput() ?>

Loading…
Cancel
Save