Blame view

common/modules/comment/views/manage/update.php 570 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
      use common\modules\comment\models\CommentModel;
      use yii\helpers\Html;
      use yii\widgets\ActiveForm;
      
      /**
       * @var CommentModel $model
       */
      $statuses = [
          $model::STATUS_ACTIVE => 'Активный',
          $model::STATUS_HIDDEN => 'Скрытый',
          $model::STATUS_DELETED => 'Удаленный',
      ];
      $form = ActiveForm::begin();
      echo $form->field($model, 'text')->textarea();
      echo $form->field($model, 'status')->dropDownList($statuses);
      echo Html::submitButton('Обновить');
      $form->end();