_form.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\CarGroup */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="box box-success">
  9. <div class="box-body">
  10. <?php $form = ActiveForm::begin(); ?>
  11. <?= $form->field($model, 'brand_id')->textInput() ?>
  12. <?= $form->field($model, 'user_id')->textInput() ?>
  13. <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  14. <?= $form->field($model, 'amount')->textInput(['maxlength' => true]) ?>
  15. <?= $form->field($model, 'wechat')->textInput(['maxlength' => true]) ?>
  16. <?= $form->field($model, 'status')->textInput() ?>
  17. <?= $form->field($model, 'province')->textInput(['maxlength' => true]) ?>
  18. <?= $form->field($model, 'city')->textInput(['maxlength' => true]) ?>
  19. <div class="form-group">
  20. <?= Html::submitButton($model->isNewRecord ? Yii::t('common', 'Create') : Yii::t('common', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success btn-flat' : 'btn btn-primary btn-flat']) ?>
  21. </div>
  22. <?php ActiveForm::end(); ?>
  23. </div>
  24. </div>