30 lines
771 B
Twig
30 lines
771 B
Twig
{% if tasks is empty %}
|
|
<p>No tasks were suggested.</p>
|
|
{% else %}
|
|
<h2>Suggested tasks</h2>
|
|
|
|
{% 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>
|
|
</li>
|
|
</article>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %} |