tg bot user

This commit is contained in:
2025-01-27 12:09:41 +03:00
parent b08aaec81d
commit dd28eadf79
3 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,14 @@ use app\modules\tgbot\models\Tgbot;
$form = new \itguild\forms\ActiveForm();
$form->beginForm(isset($model) ? "/admin/tg-bot/edit/" . $model->id : "/admin/tg-bot");
$form->field(class: \itguild\forms\inputs\TextInput::class, name: "user_id", params: [
'class' => "form-control",
'placeholder' => 'User ID',
'value' => $model->user_id ?? ''
])
->setLabel("User ID")
->render();
$form->field(class: \itguild\forms\inputs\TextInput::class, name: "bot_id", params: [
'class' => "form-control",
'placeholder' => 'Bot ID',