{# 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 "projectify/forms/submit.html" with name="action" value="quick_add_task" text=_("Add task") %}
{% include "workspace/common/loading_spinner.html" %}
{% endpartialdef quick_add_task %} {% partialdef taskrow %} {% if can_update_task %}
{% csrf_token %}
{% else %} {% endif %} {{ task.title }} {% for label in task.labels.all %}
{{ label.name }}
{% endfor %} {% if can_update_task %}
{# TODO in AT, say "currently assigned to ..." #} {% user_avatar task.assignee %} {% circle_button label=_("Move task up") value="up" name="direction" disabled=task.first icon_style="chevron-up" %} {% circle_button label=_("Move task down") value="down" name="direction" disabled=task.last icon_style="chevron-down" %} {% csrf_token %}

...

{% icon "dots-horizontal" %} {% else %}
{% user_avatar task.assignee %}
{% endif %} {% endpartialdef taskrow %} {% partialdef section_contents %} {% has_perm "workspace.create_task" user project.workspace as can_create_task %} {% has_perm "workspace.update_task" user project.workspace as can_update_task %} {% for task in section.task_set.all %} {% partial taskrow %} {% empty %} {% endfor %}
{% translate "Task title" %} {% translate "Task labels" %} {% translate "Task actions" %}
{% if section.has_tasks %} {% translate "No tasks found for your search." %} {% else %} {% translate "No tasks in this section." %} {% if can_create_task %} {% anchor 'dashboard:sections:create-task' label=_("Add a task here") section_uuid=section.uuid %} {% endif %} {% endif %}
{% if can_create_task %} {% partial quick_add_task %} {% endif %} {% endpartialdef section_contents %} {% partialdef section %} {% has_perm "workspace.update_section" user project.workspace as can_update_section %}
{% csrf_token %}

{{ section.title }}

{% if can_update_section %} {% circle_anchor label=_("Update section") icon_style="pencil" href="dashboard:sections:update" section_uuid=section.uuid size=4 %} {% endif %}
{% include "workspace/common/loading_spinner.html" %} {% if can_create_task %} {% go_to_action href="dashboard:sections:create-task" label=_("Add task") style="secondary" icon_style="plus" section_uuid=section.uuid %} {% endif %}
{% if not section.minimized %} {% partial section_contents %} {% endif %}
{% endpartialdef section %} {% block dashboard_content %} {% has_perm "workspace.create_section" user project.workspace as can_create_section %}
{% if task_filter_form %} {% endif %}
{% for section in project.section_set.all %} {% partial section %} {% empty %}

{% translate "No sections yet" %}

{% translate "Create your first section to start organizing tasks." %}

{% if can_create_section %} {% go_to_action href="dashboard:projects:create-section" project_uuid=project.uuid label=_("Create section") title=_("Create a new section") %} {% endif %}
{% endfor %} {% if can_create_section %}
{% go_to_action href="dashboard:projects:create-section" project_uuid=project.uuid label=_("Create section") title=_("Create a new section") style="primary" %}
{% endif %}
{# djlint:off #} {# djlint:on #} {% endblock dashboard_content %}