styling updates
This commit is contained in:
@@ -2,29 +2,37 @@
|
||||
<p>No tasks were suggested.</p>
|
||||
{% else %}
|
||||
<h2>Suggested tasks</h2>
|
||||
|
||||
<ul class="suggested-tasks">
|
||||
{% for task in tasks %}
|
||||
<article>
|
||||
<h3>{{ task.title }}</h3>
|
||||
<ul>
|
||||
{% if task.description %}
|
||||
<li><p>{{ task.description }}</p></li>
|
||||
{% endif %}
|
||||
|
||||
<li>
|
||||
<dt>Duration</dt>
|
||||
<dd>{{ task.estimatedDurationMinutes }} minutes</dd>
|
||||
|
||||
<dt>Priority</dt>
|
||||
<dd>{{ task.priority }}</dd>
|
||||
|
||||
<dt>Category</dt>
|
||||
<dd>{{ task.category }}</dd>
|
||||
|
||||
<dt>Recurring</dt>
|
||||
<dd>{{ task.isRecurring ? 'Yes' : 'No' }}</dd>
|
||||
{{ dump(task|json_encode) }}
|
||||
<button><span class="material-symbols-outlined">menu</span></button>
|
||||
<article>
|
||||
<div class="summary">
|
||||
<h3>{{ task.title }}</h3>
|
||||
{% if task.description %}
|
||||
<p>{{ task.description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="info">
|
||||
<ul>
|
||||
<li>
|
||||
<span>Duration</span> <span>{{ task.estimatedDurationMinutes }} minutes</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>Priority</span><span>{{ task.priority }}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>Category</span><span>{{ task.category }}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>Recurring</span><span>{{ task.isRecurring ? 'Yes' : 'No' }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
</li>
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -7,6 +7,7 @@
|
||||
<h1>Brain Dump</h1>
|
||||
|
||||
<form
|
||||
class="braindump-form"
|
||||
method="post"
|
||||
action="{{ path('app_braindump_dump') }}"
|
||||
hx-post="{{ path('app_braindump_dump') }}"
|
||||
@@ -36,30 +37,33 @@
|
||||
></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit">
|
||||
<span class="material-symbols-outlined">robot_2</span>
|
||||
Suggest tasks
|
||||
</button>
|
||||
|
||||
<button type="submit">
|
||||
<span class="material-symbols-outlined">robot_2</span>
|
||||
Suggest tasks
|
||||
</button>
|
||||
<span
|
||||
id="thinking"
|
||||
class="thinking"
|
||||
class="htmx-indicator"
|
||||
aria-live="polite"
|
||||
>
|
||||
<span class="material-symbols-outlined spinner">progress_activity</span>
|
||||
Thinking…
|
||||
</span>
|
||||
<span
|
||||
id="request-failed"
|
||||
class="request-failed"
|
||||
aria-live="assertive"
|
||||
hidden>
|
||||
<span class="material-symbols-outlined">error</span>
|
||||
Something went wrong
|
||||
</span>
|
||||
</form>
|
||||
<span
|
||||
id="thinking"
|
||||
class="htmx-indicator"
|
||||
aria-live="polite"
|
||||
>
|
||||
<span class="material-symbols-outlined spinner">progress_activity</span>
|
||||
Thinking…
|
||||
</span> <span
|
||||
id="request-failed"
|
||||
class="request-failed"
|
||||
aria-live="assertive"
|
||||
hidden
|
||||
>
|
||||
<span class="material-symbols-outlined">error</span>
|
||||
Something went wrong
|
||||
</span>
|
||||
<div id="tasks-result" class="task-result">
|
||||
{# HTMX will put the proposed tasks here #}
|
||||
|
||||
<div class="task-result-container">
|
||||
<div id="tasks-result" class="task-result">
|
||||
{# HTMX will put the proposed tasks here #}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user