beginForm(isset($model) ? "/admin/tag/edit/" . $model->id : "/admin/tag"); $form->field(class: \itguild\forms\inputs\TextInput::class, name: "label", params: [ 'class' => "form-control", 'placeholder' => 'Заголовок', 'value' => $model->label ?? '' ]) ->setLabel("Заголовок") ->render(); $form->field(class: \itguild\forms\inputs\TextInput::class, name: "entity", params: [ 'class' => "form-control", 'placeholder' => 'Сущность', 'value' => $model->entity ?? '' ]) ->setLabel("Сущность") ->render(); $form->field(\itguild\forms\inputs\Select::class, 'status', [ 'class' => "form-control", 'value' => $model->status ?? '' ]) ->setLabel("Статус") ->setOptions(Tag::getStatus()) ->render(); ?>