28 lines
839 B
HTML
28 lines
839 B
HTML
{% if tasks %}
|
|
<table class="task-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Task</th>
|
|
<th>Customer</th>
|
|
<th>Status</th>
|
|
<th>Due</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for task in tasks %}
|
|
<tr>
|
|
<td>
|
|
{% if task.url %}<a href="{{ task.url }}" target="_blank" rel="noopener">{{ task.name }}</a>
|
|
{% else %}{{ task.name }}{% endif %}
|
|
</td>
|
|
<td>{{ task.custom_fields.get('Client', 'N/A') if task.custom_fields else 'N/A' }}</td>
|
|
<td><span class="status-badge status-{{ task.status|replace(' ', '-') }}">{{ task.status }}</span></td>
|
|
<td>{{ task.due_display or '-' }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p class="text-muted">No tasks</p>
|
|
{% endif %}
|