beginForm('some'); ?> field(TextInput::class, name: "email", params: [ 'class' => "form-control", 'placeholder' => 'Email' ]) ->setTemplate(\itguild\forms\templates\bootstrap5\Bootstrap5Template::class) ->setLabel("Email") ->render(); $form->field(TextArea::class, name: "phone", params: ['class' => "form-control", 'placeholder' => 'phone', 'value'=> 'asd'])->setTemplate(\itguild\forms\templates\bootstrap5\Bootstrap5Template::class)->setLabel("Message")->render(); $form->field(class: Select::class, name: 'select2', params: ['value' => 2, 'class' => "form-control"]) ->setOptions(['1' => 'bbb1', 2 => 'vvv3', 3 => 'ggg3', 4 => 'fgfgfgfg4']) ->render(); $form->field(\itguild\forms\inputs\RadioButton::class, name: "radio1", params: ["id" => "1"])->setLabel("sds?") ->render(); $form->field(\itguild\forms\inputs\RadioButton::class, name: "radio1", params: ["id" => "3"])->render(); $form->field(\itguild\forms\inputs\Checkbox::class, name: "checkbox1", params: ["value" => "1"])->render(); $form->field(\itguild\forms\inputs\Checkbox::class, name: "checkbox2", params: ["value" => "1"])->render(); $form->field(\itguild\forms\inputs\Button::class, name: "checkbox2", params: ["value" => "Submit"])->render(); ?>
endForm(); ?>