{# SPDX-FileCopyrightText: 2024-2026 JWP Consulting GK #} {# SPDX-License-Identifier: AGPL-3.0-or-later #} {% extends "dashboard_base.html" %} {% load i18n %} {% load projectify %} {% load rules %} {% block title %} {% blocktrans with title=project.title %}{{ title }} - Projectify{% endblocktrans %} {% endblock title %} {% block extrahead %} {{ block.super }} {% endblock extrahead %} {% partialdef quick_add_task %}
{% csrf_token %} {{ quick_add_task.title }} {% include "workspace/common/loading_spinner.html" %}
{% include "projectify/forms/submit.html" with name="action" value="quick_add_task" text=_("Add task") %}
{% endpartialdef quick_add_task %} {% partialdef task_done %} {% endpartialdef task_done %} {% partialdef taskrow %} {% if can_update_task %}
{% csrf_token %} {% partial task_done %}
{% else %} {% endif %} {{ task.title }} {% icon "external_links" size=4 %} {# TODO in AT, say "currently assigned to ..." #} {% user_avatar task.assignee %} {% endpartialdef taskrow %} {% partialdef project_tasks %} {% has_perm "workspace.create_task" user project.workspace as can_create_task %} {% has_perm "workspace.update_task" user project.workspace as can_update_task %}

{% trans "Tasks" %}

{% if can_create_task %} {% go_to_action href="dashboard:projects:create-task" label=_("Add task") style="secondary" icon_style="plus" project_uuid=project.uuid %} {% endif %}
{% for task in project.task_set.all %} {% partial taskrow %} {% empty %} {% endfor %}
{% translate "Title" %} {% translate "Assigned to" %}
{% translate "No tasks in this project." %} {% if can_create_task %} {% anchor href='dashboard:projects:create-task' label=_("Add a task here") project_uuid=project.uuid %} {% endif %}
{% if can_create_task %} {% partial quick_add_task %} {% endif %}
{% endpartialdef project_tasks %} {% block dashboard_content %}

{{ project.title }}

{% has_perm "workspace.update_project" user workspace as can_update_project %} {% if can_update_project %} {% go_to_action "dashboard:projects:update" label=_("Edit") title=_("Edit this task") project_uuid=project.uuid %} {% endif %}
{% if project_description %}
{{ project_description }}
{% endif %} {% partial project_tasks %}
{# djlint:off #} {# djlint:on #} {% endblock dashboard_content %}