update 3
This commit is contained in:
13
example.php
13
example.php
@ -20,6 +20,9 @@ $form = new ActiveForm()
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/vanillajs-datepicker/dist/css/datepicker.min.css" rel="stylesheet">
|
||||
<style>
|
||||
.bd-placeholder-img {
|
||||
font-size: 1.125rem;
|
||||
@ -158,12 +161,16 @@ $form = new ActiveForm()
|
||||
->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])
|
||||
$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\Radio::class, name: "radio1", params: ["id" => "1"])->setLabel("sds?") ->render();
|
||||
$form->field(\itguild\forms\inputs\Radio::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();
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Password</label>
|
||||
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
|
||||
|
Reference in New Issue
Block a user