_form.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Author: lf
  4. * Blog: https://blog.feehi.com
  5. * Email: job@feehi.com
  6. * Created at: 2016-03-23 15:49
  7. */
  8. /**
  9. * @var $this yii\web\View
  10. * @var $model common\models\Comment
  11. */
  12. use backend\widgets\ActiveForm;
  13. use common\libs\Constants;
  14. $this->title = "Comments";
  15. ?>
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <div class="ibox float-e-margins">
  19. <?=$this->render('/widgets/_ibox-title')?>
  20. <div class="ibox-content">
  21. <?php $form = ActiveForm::begin(); ?>
  22. <?= $form->field($model, 'nickname') ?>
  23. <div class="hr-line-dashed"></div>
  24. <?= $form->field($model, 'content')->textarea() ?>
  25. <div class="hr-line-dashed"></div>
  26. <?= $form->field($model, 'website_url') ?>
  27. <div class="hr-line-dashed"></div>
  28. <?= $form->field($model, 'ip') ?>
  29. <div class="hr-line-dashed"></div>
  30. <?= $form->field($model, 'status')->radioList(Constants::getCommentStatusItems()) ?>
  31. <div class="hr-line-dashed"></div>
  32. <?= $form->defaultButtons() ?>
  33. <?php ActiveForm::end(); ?>
  34. </div>
  35. </div>
  36. </div>
  37. </div>