htmxginpongo/ui/templates/message/form.new.html.twig

11 lines
465 B
Twig
Raw Normal View History

2023-10-02 17:42:50 +02:00
<form hx-post="/" hx-target="#messages" hx-swap="beforeend">
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" name="name" class="form-control" id="name">
</div>
<div class="mb-3">
<label for="text" class="form-label">Message</label>
<textarea class="form-control" name="text" id="text"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>