Blame view

backend/modules/faq/views/question/_form.php 578 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  use thread\app\bootstrap\ActiveForm;
  
  use backend\modules\faq\models\Group;
  
  /**
   * @var $model \backend\modules\faq\models\Question
   */
  $form = ActiveForm::begin();
  //
  echo
      $form->submit($model, $this)
      . $form->field($model, 'group_id')->dropDownList(Group::dropDownList(), ['prompt' => '---' . Yii::t('app', 'Choose group') . '---'])
      . $form->text_line($model, 'user_name')
      . $form->text_line($model, 'email')
      . $form->text_line($model, 'question')
      . $form->switcher($model, 'published')
      . $form->submit($model, $this);
  //
  ActiveForm::end();