gata basic ul
This commit is contained in:
@@ -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();
|
||||
?>
|
||||
Reference in New Issue
Block a user