From 7ebf9507608b2aede1675b7db0dce0f986f81bc7 Mon Sep 17 00:00:00 2001 From: sakiadachi Date: Sat, 31 May 2025 17:28:33 +0900 Subject: [PATCH 1/3] BE: Add dashboard project page sidebar - Workspaces list - Projects list Simplify a project view test --- .../projectify/templates/dashboard_base.html | 27 +++---------------- .../common/sidebar/project_details.html} | 4 +++ .../common/sidebar/workspace_details.html | 25 +++++++++++++++++ .../templates/workspace/form_base.html | 2 +- .../workspace/workspace_settings_base.html | 2 +- .../workspace/test/views/test_project.py | 14 ++++------ backend/projectify/workspace/views/project.py | 3 +++ 7 files changed, 43 insertions(+), 34 deletions(-) rename backend/projectify/{templates/dashboard_projects.html => workspace/templates/workspace/common/sidebar/project_details.html} (91%) create mode 100644 backend/projectify/workspace/templates/workspace/common/sidebar/workspace_details.html diff --git a/backend/projectify/templates/dashboard_base.html b/backend/projectify/templates/dashboard_base.html index cdd163e7c..046b8dfc4 100644 --- a/backend/projectify/templates/dashboard_base.html +++ b/backend/projectify/templates/dashboard_base.html @@ -12,28 +12,9 @@
diff --git a/backend/projectify/templates/dashboard_projects.html b/backend/projectify/workspace/templates/workspace/common/sidebar/project_details.html similarity index 91% rename from backend/projectify/templates/dashboard_projects.html rename to backend/projectify/workspace/templates/workspace/common/sidebar/project_details.html index a0e6474a2..8a66c5fe6 100644 --- a/backend/projectify/templates/dashboard_projects.html +++ b/backend/projectify/workspace/templates/workspace/common/sidebar/project_details.html @@ -22,3 +22,7 @@ {% translate "Create new project" %} {% endif %} +
+ {% block filter_team_members %} + {% endblock filter_team_members %} +
diff --git a/backend/projectify/workspace/templates/workspace/common/sidebar/workspace_details.html b/backend/projectify/workspace/templates/workspace/common/sidebar/workspace_details.html new file mode 100644 index 000000000..8b6d42695 --- /dev/null +++ b/backend/projectify/workspace/templates/workspace/common/sidebar/workspace_details.html @@ -0,0 +1,25 @@ +{# SPDX-FileCopyrightText: 2024 JWP Consulting GK #} +{# SPDX-License-Identifier: AGPL-3.0-or-later #} +{% load i18n %} +
+ +
{% include "heroicons/briefcase.svg" %}
+ {{ workspace.title }} +
+ +
diff --git a/backend/projectify/workspace/templates/workspace/form_base.html b/backend/projectify/workspace/templates/workspace/form_base.html index 0ea390b48..8085b5b53 100644 --- a/backend/projectify/workspace/templates/workspace/form_base.html +++ b/backend/projectify/workspace/templates/workspace/form_base.html @@ -3,7 +3,7 @@ {% extends "dashboard_base.html" %} {% load i18n %} {% block dashboard_projects %} - {% include "dashboard_projects.html" %} + {% include "workspace/common/sidebar/project_details.html" %} {% endblock dashboard_projects %} {% block dashboard_content %} -
+
{% for member in team_members %}