add composer and scaffold out the braindump function
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<div>
|
||||
<h2>Ollama says:</h2>
|
||||
|
||||
<p>{{ response|nl2br }}</p>
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user