post crud

This commit is contained in:
2024-07-25 16:15:18 +03:00
parent 653bf674c9
commit 25e585655c
16 changed files with 303 additions and 46 deletions

View File

@ -11,7 +11,7 @@ $form->beginForm(isset($model) ? "/admin/user/edit/" . $model->id : "/admin/user
$form->field(class: \itguild\forms\inputs\TextInput::class, name: "username", params: [
'class' => "form-control",
'placeholder' => 'Логин',
'model' => $model->username ?? ''
'value' => $model->username ?? ''
])
->setLabel("Логин")
->render();