You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.3 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\ars\Goods */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="goods-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?= $form->field($model, 'pid')->textInput() ?>
  11. <?= $form->field($model, 'cat_id')->textInput() ?>
  12. <?= $form->field($model, 'brand_id')->textInput() ?>
  13. <?= $form->field($model, 'shop_cat_id')->textInput() ?>
  14. <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  15. <?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>
  16. <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  17. <?= $form->field($model, 'supplier_id')->textInput() ?>
  18. <?= $form->field($model, 'weight')->textInput() ?>
  19. <?= $form->field($model, 'length')->textInput() ?>
  20. <?= $form->field($model, 'width')->textInput() ?>
  21. <?= $form->field($model, 'height')->textInput() ?>
  22. <?= $form->field($model, 'diameter')->textInput() ?>
  23. <?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
  24. <?= $form->field($model, 'sold_count')->textInput() ?>
  25. <?= $form->field($model, 'limit_count')->textInput() ?>
  26. <?= $form->field($model, 'stock')->textInput() ?>
  27. <?= $form->field($model, 'stock_warn')->textInput() ?>
  28. <?= $form->field($model, 'market_price')->textInput() ?>
  29. <?= $form->field($model, 'price')->textInput() ?>
  30. <?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
  31. <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
  32. <?= $form->field($model, 'image')->textInput() ?>
  33. <?= $form->field($model, 'model_id')->textInput() ?>
  34. <?= $form->field($model, 'is_sale')->textInput() ?>
  35. <?= $form->field($model, 'sort_order')->textInput() ?>
  36. <?= $form->field($model, 'bouns_points')->textInput() ?>
  37. <?= $form->field($model, 'experience_points')->textInput() ?>
  38. <?= $form->field($model, 'is_delete')->textInput() ?>
  39. <?= $form->field($model, 'express_template')->textInput() ?>
  40. <div class="form-group">
  41. <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
  42. <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
  43. </div>
  44. <?php ActiveForm::end(); ?>
  45. </div>