_form.php 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /** @var yii\web\View $this */
  5. /** @var app\models\ReportTopic $model */
  6. /** @var yii\widgets\ActiveForm $form */
  7. ?>
  8. <div class="report-topic-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?= $form->field($model, 'parent_id')->textInput() ?>
  11. <?= $form->field($model, 'date')->textInput() ?>
  12. <?= $form->field($model, 'title')->textarea(['rows' => 6]) ?>
  13. <?= $form->field($model, 'body')->textarea(['rows' => 6]) ?>
  14. <?= $form->field($model, 'folder')->textInput(['maxlength' => true]) ?>
  15. <?= $form->field($model, 'sort')->textInput() ?>
  16. <?= $form->field($model, 'active')->textInput() ?>
  17. <div class="form-group">
  18. <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
  19. </div>
  20. <?php ActiveForm::end(); ?>
  21. </div>