{% macro task_section(project_name, section, all_labels, redirect_url) %}
{# Preserve other sections' state as hidden fields when this form submits #} {% let preserve = section.sort_ctx.preserve_qs %} {% if !preserve.is_empty() %} {% for pair in preserve.split('&') %} {% let kv = pair.splitn(2, '=').collect::>() %} {% if kv.len() == 2 %} {% endif %} {% endfor %} {% endif %} {% if section.tasks.is_empty() %}

No tasks match the current filters.

{% else %}
{% for t in section.tasks %} {% endfor %}
{{ section.label }} tasks for project
ID{{ section.sort_ctx.arrow("id") }} Type{{ section.sort_ctx.arrow("type") }} Priority{{ section.sort_ctx.arrow("priority") }} Effort{{ section.sort_ctx.arrow("effort") }} Title{{ section.sort_ctx.arrow("title") }} Labels Created{{ section.sort_ctx.arrow("created") }} Change status
{{ t.short_id }} {{ t.task_type }} {{ t.priority }} {{ t.effort }} {{ t.title }} {% for l in t.labels %}{% if !loop.first %}, {% endif %}{{ l }}{% endfor %} {% if t.status != "open" %} {% endif %} {% if t.status != "in_progress" %} {% endif %} {% if t.status != "closed" %} {% endif %}
{% if section.total_pages > 1 %} {% endif %} {% endif %} {% endmacro %} {% macro task_form_dialog(dialog_id, heading, form_action, submit_label, mode, all_projects, active_project, prefix, title, description, task_type, priority, effort, parent, labels) %}

{{ heading }}

{% if mode == "create" %}
{% endif %}
{% if mode == "create" %} {% endif %} {% if mode == "edit" %} {% endif %}
{% endmacro %}