{# SPDX-FileCopyrightText: 2025 JWP Consulting GK #} {# SPDX-License-Identifier: AGPL-3.0-or-later #} {% extends "dashboard_base.html" %} {% load projectify %} {% load rules %} {% load i18n %} {% block title %} {% blocktrans with task_title=task.title %}{{ task_title }} task - Projectify{% endblocktrans %} {% endblock title %} {% partialdef breadcrumbs %}
{% if request.htmx %} {% else %} {% circle_anchor label=_("Go back to project") icon_style="x" href=project %} {% endif %} {% include "workspace/task/breadcrumbs.html" with section=task.section task=task %}
{% endpartialdef breadcrumbs %} {% partialdef task_panel %} {% has_perm "workspace.update_task" user task.workspace as can_update_task %}

{% trans "Task description" %}

{% if task.description %}
{{ task.description }}
{% else %}

{% trans "No description" %}

{% endif %} {% if can_update_task %} {% circle_anchor label=_("Edit description") icon_style="pencil" href="dashboard:tasks:update-focus-field" title=_("Edit description") size=4 task_uuid=task.uuid focus_field="description" %} {% endif %}

{% trans "Assignee" %}

{% user_avatar task.assignee %} {{ task.assignee|default:"No team member assigned" }} {% if can_update_task %} {% circle_anchor label=_("Edit assignee") icon_style="pencil" href="dashboard:tasks:update-focus-field" title=_("Edit assignee") size=4 task_uuid=task.uuid focus_field="assignee" %} {% endif %}

{% trans "Due date" %}

{% if task.due_date %} {{ task.due_date.date.isoformat }} {% else %}

{% trans "No due date" %}

{% endif %} {% if can_update_task %} {% circle_anchor label=_("Edit due date") icon_style="pencil" href="dashboard:tasks:update-focus-field" title=_("Edit due date") size=4 task_uuid=task.uuid focus_field="due_date" %} {% endif %}
{% endpartialdef task_panel %} {% partialdef task_inline %} {% has_perm "workspace.update_task" user task.workspace as can_update_task %}
{% partial breadcrumbs %} {% if can_update_task %} {% go_to_action "dashboard:tasks:update" label=_("Edit task") title=_("Edit this task") task_uuid=task.uuid %} {% endif %}
{% partial task_panel %}
{% endpartialdef task_inline %} {% block dashboard_content %} {% has_perm "workspace.update_task" user task.workspace as can_update_task %}
{% partial breadcrumbs %}
{% if can_update_task %} {% go_to_action "dashboard:tasks:update" label=_("Edit") title=_("Edit this task") task_uuid=task.uuid %} {% endif %} {% circle_anchor label=_("Task menu") title=_("Open task context menu") icon_style="dots-vertical" href="dashboard:tasks:actions" task_uuid=task.uuid %}
{% partial task_panel %}
{% endblock dashboard_content %}