first version of proper braindump composer
This commit is contained in:
@@ -1,38 +1,29 @@
|
||||
{% if tasks is empty %}
|
||||
{% if error|default(null) %}
|
||||
<p class="brain-dump-feedback brain-dump-feedback--error" role="alert">{{ error }}</p>
|
||||
{% elseif tasks is empty %}
|
||||
<p>No tasks were suggested.</p>
|
||||
{% else %}
|
||||
<h2>Suggested tasks</h2>
|
||||
<ul class="suggested-tasks">
|
||||
{% for task in tasks %}
|
||||
<ul class="suggested-tasks">
|
||||
{% for task in tasks %}
|
||||
<li>
|
||||
{{ 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 %}
|
||||
{% 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>
|
||||
<li><span>Duration</span><span>{{ task.estimatedDurationMinutes }} minutes</span></li>
|
||||
<li><span>Priority</span><span>{{ task.priority|capitalize }}</span></li>
|
||||
{% if task.category %}<li><span>Category</span><span>{{ task.category }}</span></li>{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if task.subtasks is not empty %}
|
||||
<p><strong>Subtasks:</strong> {{ task.subtasks|map(subtask => subtask.title)|join(', ') }}</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user