beginForm(isset($model) ? "/admin/post/edit/" . $model->id : "/admin/post"); $form->field(class: \itguild\forms\inputs\TextArea::class, name: "post", params: [ 'class' => "form-control", 'placeholder' => 'Пост', 'rows' => '10', 'value' => $model->post ?? '' ]) ->setLabel("Пост") ->render(); $form->field(class: \itguild\forms\inputs\TextInput::class, name: "username", params: [ 'class' => "form-control", 'placeholder' => 'Логин', 'value' => $model->username ?? '' ]) ->setLabel("Имя пользователя") ->render(); ?>