|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
use yii\helpers\Html; |
|
|
use yii\helpers\Html; |
|
|
use yii\bootstrap4\ActiveForm; |
|
|
use yii\bootstrap4\ActiveForm; |
|
|
|
|
|
use linyao\widgets\Select2; |
|
|
|
|
|
use antgoods\goods\models\ars\Category; |
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $model antgoods\goods\models\ars\Attribute */ |
|
|
/* @var $model antgoods\goods\models\ars\Attribute */ |
|
@ -18,6 +20,8 @@ use yii\bootstrap4\ActiveForm; |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'sort_order')->textInput() ?>
|
|
|
<?= $form->field($model, 'sort_order')->textInput() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'cat_id')->widget(Select2::className(), ["items" => array_merge([0 => '请选择'], Category::modelColumn()), "promptText" => false]) ?>
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
|
|
|
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
|
|
|
<?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
|
|
|
<?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
|
|
|