Browse Source

处理表单需要隐藏的字段

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
24a3dfc5c7
  1. 2
      vendor/antgoods/goods/src/views/category/_form.php
  2. 2
      vendor/antgoods/goods/src/views/shopcategory/_form.php

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

@ -18,7 +18,7 @@ use yii\helpers\Url;
<?= $form->field($model, 'sort_order')->textInput() ?> <?= $form->field($model, 'sort_order')->textInput() ?>
<?= $form->field($model, 'iconImageId')->textInput()->label('') ?>
<?= $form->field($model, 'iconImageId')->hiddenInput()->label('') ?>
<?= $form->field($model, 'iconImagePath')->widget(\iron\widgets\Upload::className(), [ <?= $form->field($model, 'iconImagePath')->widget(\iron\widgets\Upload::className(), [
'url' => 'upload', 'url' => 'upload',
'deleteUrl' => 'img-id-del', 'deleteUrl' => 'img-id-del',

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

@ -22,7 +22,7 @@ use yii\helpers\Url;
<?= $form->field($model, 'sort_order')->textInput() ?> <?= $form->field($model, 'sort_order')->textInput() ?>
<?= $form->field($model, 'iconImageId')->textInput()->label('') ?>
<?= $form->field($model, 'iconImageId')->hiddenInput()->label('') ?>
<?= $form->field($model, 'iconImagePath')->widget(\iron\widgets\Upload::className(), [ <?= $form->field($model, 'iconImagePath')->widget(\iron\widgets\Upload::className(), [
'url' => 'upload', 'url' => 'upload',
'deleteUrl' => 'img-id-del', 'deleteUrl' => 'img-id-del',

Loading…
Cancel
Save