Files
symfony-k3s/templates/braindump/index.html.twig
T

47 lines
1010 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Brain Dump{% endblock %}
{% block body %}
<h1>Brain Dump</h1>
<form
method="post"
action="{{ path('app_braindump_dump') }}"
hx-post="{{ path('app_braindump_dump') }}"
hx-target="#tasks-result"
hx-swap="innerHTML"
>
<input
type="hidden"
name="_token"
value="{{ csrf_token('braindump_dump') }}"
>
<div>
<label for="brain_dump">
What's on your mind?
</label>
<textarea
id="brain_dump"
name="brain_dump"
rows="8"
placeholder="Dump everything that's on your mind..."
required
></textarea>
</div>
<button type="submit">
✨ Suggest tasks
</button>
</form>
<div id="tasks-result">
{# HTMX will put the proposed tasks here #}
</div>
{% endblock %}