Browse Source

将yii的activeform修改为bootstrap4的activeform

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
48db0c9360
  1. 2
      vendor/antgoods/goods/src/views/attribute/_form.php
  2. 2
      vendor/antgoods/goods/src/views/brand/_form.php
  3. 2
      vendor/antgoods/goods/src/views/category/_form.php
  4. 8
      vendor/antgoods/goods/src/views/goods/_form.php
  5. 2
      vendor/antgoods/goods/src/views/shopcategory/_form.php
  6. 2
      vendor/antgoods/goods/src/views/supplier/_form.php

2
vendor/antgoods/goods/src/views/attribute/_form.php

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Attribute */ /* @var $model antgoods\goods\models\ars\Attribute */

2
vendor/antgoods/goods/src/views/brand/_form.php

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Brand */ /* @var $model antgoods\goods\models\ars\Brand */

2
vendor/antgoods/goods/src/views/category/_form.php

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
use blobt\widgets\Icheck; use blobt\widgets\Icheck;
/* @var $this yii\web\View */ /* @var $this yii\web\View */

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

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
use antgoods\goods\models\ars\Category; use antgoods\goods\models\ars\Category;
use antgoods\goods\models\ars\Brand; use antgoods\goods\models\ars\Brand;
use antgoods\goods\models\ars\ShopCategory; use antgoods\goods\models\ars\ShopCategory;
@ -56,7 +56,11 @@ use antgoods\goods\models\ars\Supplier;
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?> <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'image')->textInput() ?>
<?= $form->field($model, 'image')->widget(\iron\widgets\Upload::className(), [
'url' => 'upload',
'deleteUrl' => 'imageDel',
'dragdropWidth'=> 800
]) ?>
<?= $form->field($model, 'model_id')->textInput() ?> <?= $form->field($model, 'model_id')->textInput() ?>

2
vendor/antgoods/goods/src/views/shopcategory/_form.php

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
use blobt\widgets\Icheck; use blobt\widgets\Icheck;
/* @var $this yii\web\View */ /* @var $this yii\web\View */

2
vendor/antgoods/goods/src/views/supplier/_form.php

@ -1,7 +1,7 @@
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap4\ActiveForm;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Supplier */ /* @var $model antgoods\goods\models\ars\Supplier */

Loading…
Cancel
Save