Browse Source

style:修改商品表单显示

antshop
linyaostalker 5 years ago
parent
commit
dcb5411f33
  1. 64
      backend/modules/goods/views/goods/goods.php

64
backend/modules/goods/views/goods/goods.php

@ -12,51 +12,69 @@ use backend\modules\goods\models\ars\Goods;
/* @var $model backend\modules\goods\models\ars\Goods */ /* @var $model backend\modules\goods\models\ars\Goods */
/* @var $form yii\widgets\ActiveForm */ /* @var $form yii\widgets\ActiveForm */
?> ?>
<?= $form->field($model, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择', 'disabled' => $judgeGoodsCategory]) ?>
<style>
.form-group {
margin-right: 40px;
}
.goods-base-info {
display: flex;
}
</style>
<div class="goods-base-info">
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'shop_cat_id')->dropDownList(ShopCategory::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'market_price')->textInput() ?>
<?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'price')->textInput() ?>
</div>
<?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
<div class="goods-base-info">
<?= $form->field($model, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择', 'disabled' => $judgeGoodsCategory]) ?>
<?= $form->field($model, 'supplier_id')->dropDownList(Supplier::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'weight')->textInput() ?>
<?= $form->field($model, 'shop_cat_id')->dropDownList(ShopCategory::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'length')->textInput() ?>
<?= $form->field($model, 'supplier_id')->dropDownList(Supplier::modelColumn(), ['prompt' => '请选择']) ?>
<?= $form->field($model, 'width')->textInput() ?>
<?= $form->field($model, 'is_sale')->radioList(Goods::$isSale) ?>
</div>
<?= $form->field($model, 'height')->textInput() ?>
<div class="goods-base-info">
<?= $form->field($model, 'weight')->textInput() ?>
<?= $form->field($model, 'diameter')->textInput() ?>
<?= $form->field($model, 'length')->textInput() ?>
<?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'width')->textInput() ?>
<?= $form->field($model, 'limit_count')->textInput() ?>
<?= $form->field($model, 'height')->textInput() ?>
<?= $form->field($model, 'stock')->textInput() ?>
<?= $form->field($model, 'diameter')->textInput() ?>
</div>
<?= $form->field($model, 'stock_warn')->textInput() ?>
<div class="goods-base-info">
<?= $form->field($model, 'sort_order')->textInput() ?>
<?= $form->field($model, 'market_price')->textInput() ?>
<?= $form->field($model, 'bouns_points')->textInput() ?>
<?= $form->field($model, 'price')->textInput() ?>
<?= $form->field($model, 'experience_points')->textInput() ?>
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
</div>
<?= $form->field($model, 'is_sale')->radioList(Goods::$isSale) ?>
<div class="goods-base-info">
<?= $form->field($model, 'limit_count')->textInput() ?>
<?= $form->field($model, 'sort_order')->textInput() ?>
<?= $form->field($model, 'stock')->textInput() ?>
<?= $form->field($model, 'bouns_points')->textInput() ?>
<?= $form->field($model, 'stock_warn')->textInput() ?>
</div>
<?= $form->field($model, 'experience_points')->textInput() ?>
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
<div class="form-group"> <div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?> <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>

Loading…
Cancel
Save