gata basic ul

This commit is contained in:
Cerbu Andrei Mihnea
2023-05-10 03:28:30 +03:00
parent 90f12ab916
commit a739a66ae4
19 changed files with 255 additions and 110 deletions
+11 -16
View File
@@ -1,17 +1,12 @@
<h1>Contact</h1>
<?php
use app\core\form\Form;
use app\core\form\TextareaField;
$this->title = 'Contact';
<form action="" method="post">
<div class="mb-3">
<label>Subject</label>
<input type="text" name="subject" class="form-control">
</div>
<div class="mb-3">
<label>Email</label>
<input type="text" name="email" class="form-control">
</div>
<div class="mb-3">
<label>Body</label>
<textarea name="body" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
$form = Form::begin('', 'post');
echo $form->inputField($model, 'subject');
echo new TextareaField($model, 'body');
echo $form->button();
Form::end();
?>