48 lines
1.8 KiB
Twig
48 lines
1.8 KiB
Twig
<dialog class="brain-dump-proposal-dialog" aria-labelledby="brain-dump-proposal-title">
|
|
<div class="brain-dump-proposal-dialog__content">
|
|
<h2 id="brain-dump-proposal-title">Proposed tasks</h2>
|
|
<p>Review these suggestions before they are added to {{ selected_date|date('l, j F') }}.</p>
|
|
|
|
{% if error|default(null) %}
|
|
<p class="brain-dump-feedback brain-dump-feedback--error" role="alert">{{ error }}</p>
|
|
{% endif %}
|
|
|
|
<ul class="brain-dump-proposal-list">
|
|
{% for task in tasks %}
|
|
<li>
|
|
<article>
|
|
<h3>{{ task.title }}</h3>
|
|
<p class="brain-dump-proposal-list__meta">{{ task.estimatedDurationMinutes }} min · {{ task.priority|capitalize }}{% if task.category %} · {{ task.category }}{% endif %}</p>
|
|
{% if task.description %}<p>{{ task.description }}</p>{% endif %}
|
|
{% if task.subtasks is not empty %}
|
|
<h4>Subtasks</h4>
|
|
<ul>
|
|
{% for subtask in task.subtasks %}
|
|
<li>
|
|
<strong>{{ subtask.title }}</strong>
|
|
<span>{{ subtask.estimatedDurationMinutes }} min · {{ subtask.priority|capitalize }}{% if subtask.category %} · {{ subtask.category }}{% endif %}</span>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</article>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<form
|
|
class="brain-dump-proposal-dialog__actions"
|
|
method="post"
|
|
hx-post="{{ path('app_task_braindump_confirm') }}"
|
|
hx-target="#brain-dump-modal-container"
|
|
hx-swap="innerHTML"
|
|
hx-disabled-elt="button[type=submit]"
|
|
>
|
|
<input type="hidden" name="_token" value="{{ csrf_token('task_braindump_confirm') }}">
|
|
<input type="hidden" name="proposal_id" value="{{ proposal_id }}">
|
|
<button type="button" data-close-brain-dump-dialog>Cancel</button>
|
|
<button class="task-composer__submit" type="submit">Confirm adding these tasks</button>
|
|
</form>
|
|
</div>
|
|
</dialog>
|