<?php use kartik\tabs\TabsX; use yii\bootstrap4\ActiveForm; use yii\bootstrap4\Html; /* @var $this yii\web\View */ /* @var $model antgoods\models\ars\Goods */ $this->title = '创建商品'; $this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; Yii::$app->params['bsVersion'] = '4.x'; ?> <div class="goods-create"> <div class="goods-form"> <?php $form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]); echo TabsX::widget([ 'bordered' => true, 'items' => [ [ 'label' => '<i class="fas fa-user"></i> 基本信息', 'content' => $this->render('goods', ['model' => $model, 'form' => $form, 'judgeGoodsCategory' => false, //表示后台分类可以修改 ]), ], [ 'label' => '<i class="fas fa-list-alt"></i> 筛选规格', 'content' => $this->render('filter_attribute', [ 'filterModel' => [], 'filterAttrValue' => [], ]), ], [ 'label' => '<i class="fas fa-list-alt"></i> 商品规格', 'content' => $this->render('attribute', [ 'model' => [], 'attrValue' => [], ]), ], [ 'label' => '<i class="fas fa-ad"></i> 详情上传', 'content' => $this->render('new_editor', ['model' => $model, 'form' => $form, ]), ], [ 'label' => '<i class="fas fa-picture-o"></i> 图片上传', 'content' => $this->render('picture', [ 'model' => $model, 'form' => $form ]), ], ], 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false ]); ?> <div class="form-group"> <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?> <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?> </div> <?php ActiveForm::end(); ?> </div> </div>