|
@ -1,6 +1,8 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
use yii\helpers\Html; |
|
|
|
|
|
|
|
|
use kartik\tabs\TabsX; |
|
|
|
|
|
use yii\widgets\ActiveForm; |
|
|
|
|
|
use yii\bootstrap4\Html; |
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $model antgoods\goods\models\ars\Goods */ |
|
|
/* @var $model antgoods\goods\models\ars\Goods */ |
|
@ -8,11 +10,32 @@ use yii\helpers\Html; |
|
|
$this->title = '创建商品'; |
|
|
$this->title = '创建商品'; |
|
|
$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; |
|
|
$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; |
|
|
$this->params['breadcrumbs'][] = $this->title; |
|
|
$this->params['breadcrumbs'][] = $this->title; |
|
|
|
|
|
Yii::$app->params['bsVersion'] = '4.x'; |
|
|
?>
|
|
|
?>
|
|
|
<div class="goods-create"> |
|
|
<div class="goods-create"> |
|
|
|
|
|
|
|
|
<?= $this->render('_form', [ |
|
|
|
|
|
'model' => $model, |
|
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
$form = ActiveForm::begin(); |
|
|
|
|
|
|
|
|
|
|
|
echo TabsX::widget([ |
|
|
|
|
|
'bordered' => true, |
|
|
|
|
|
'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(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
// $this->render('_form', [
|
|
|
|
|
|
// 'model' => $model,
|
|
|
|
|
|
// ])
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |