<form method="get" id="my_form">
csrf
<div class="form-control mb-5">
<label class="label cursor-pointer" for="lastname">
<span class="label-text">
Lastname:</span>
</label>
<input type="text" class="input" name="lastname" id="lastname" value="" />
<div class="label"> <span class="label-text-alt text-warning">3 characters minimum</span>
</div>
</div>
</form>
@jrmc.form({ id: 'my_form', method: 'get', error: false})
@jrmc.form.control({ name: 'lastname', hint: '3 characters minimum' })
@!jrmc.form.input()
@end
@end
Option | value | |
---|---|---|
method | GET/POST | HTTP method (default POST) |
csrf | true/false | add csrf input hidden (default true) |
error | true/false | show errors message (default true) |