From a22bb1e0439ade38f54c04d0cd5f4e86d481be46 Mon Sep 17 00:00:00 2001 From: king Date: Thu, 25 Jun 2026 13:13:12 +0900 Subject: [PATCH] =?UTF-8?q?feat(project):=20=EC=97=85=EB=AC=B4=EC=B6=94?= =?UTF-8?q?=EA=B0=80=C2=B7=EC=95=8C=EB=A6=BC=EB=B2=A8=EC=9D=84=20=EC=83=81?= =?UTF-8?q?=EB=8B=A8=EB=B0=94=EB=A1=9C=20=EC=9D=B4=EB=8F=99,=20=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20=EB=8B=A8=EA=B3=84=EC=B6=94=EA=B0=80=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - erp_base 토픈바에 {% block topbar_actions %} 추가 - 프로젝트 페이지: 알림벨 + '업무 추가' 를 탭 줄 → 상단 메뉴 오른쪽(사용자 칩 옆)으로 이동. 탭 줄은 뷰 탭만 남김 - 보드 뷰의 '+ 단계 추가' 트레일링 컬럼 제거(단계 추가 기능 삭제) Co-Authored-By: Claude Opus 4.8 --- .../project/templates/project/inbox.html | 4 ++-- .../project/templates/project/index.html | 4 ++-- .../project/templates/project/project.html | 23 ++++++++++--------- app/static/project.js | 13 ----------- app/templates/erp_base.html | 1 + 5 files changed, 17 insertions(+), 28 deletions(-) diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index 8c28ef9..a01803c 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -45,5 +45,5 @@ {% endif %} - + {% endblock %} diff --git a/app/modules/project/templates/project/index.html b/app/modules/project/templates/project/index.html index 5980f41..264a05c 100644 --- a/app/modules/project/templates/project/index.html +++ b/app/modules/project/templates/project/index.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -101,5 +101,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index 6a9d772..273bc59 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + @@ -44,6 +44,16 @@ {% endmacro %} +{% block topbar_actions %} + + notifications + + +{% if can_manage %} + +{% endif %} +{% endblock %} + {% block content %}
보드
-
- - notifications - - - {% if can_manage %} - - {% endif %} -
@@ -283,5 +284,5 @@ - + {% endblock %} diff --git a/app/static/project.js b/app/static/project.js index e7d376d..889acac 100644 --- a/app/static/project.js +++ b/app/static/project.js @@ -287,13 +287,6 @@ } board.appendChild(col); }); - if (canManage) { - const add = document.createElement("div"); - add.className = "pj-col pj-col-add"; - add.innerHTML = ''; - add.querySelector("#pj-add-stage").addEventListener("click", addStage); - board.appendChild(add); - } } async function reloadStages() { @@ -332,12 +325,6 @@ }); } - async function addStage() { - const name = prompt("새 단계 이름"); - if (!name || !name.trim()) return; - try { await api("POST", "/project/api/projects/" + projectId + "/stages", { name: name.trim() }); await reloadStages(); renderBoard(); } - catch (e) { alert("추가 실패: " + e.message); } - } function taskCard(t) { const card = document.createElement("div"); diff --git a/app/templates/erp_base.html b/app/templates/erp_base.html index dd6f5b9..f44b98c 100644 --- a/app/templates/erp_base.html +++ b/app/templates/erp_base.html @@ -115,6 +115,7 @@
+ {% block topbar_actions %}{% endblock %}
{% if user.picture %} {{ user.name }}