feat(project): 보드 세션 맨 아래에 "+ 업무 추가" 버튼

세션 헤더 우클릭으로만 가능하던 업무 추가를 컬럼 바닥의 버튼으로도
할 수 있게 했다(아사나와 같은 자리). 카드가 많아 .pj-col-body 가
세로로 스크롤돼도 버튼은 flex:none 이라 컬럼 바닥에 그대로 남는다.
관리 권한이 있을 때만 나오고, 누르면 그 세션이 미리 선택된 새 업무
팝업이 열린다(openTaskModal(null, stage_id) — 우클릭 메뉴와 동일 경로).

"전체 프로젝트" 스코프의 보드는 컬럼이 세션 이름 묶음이라 어느
프로젝트에 넣을지 정할 수 없어 버튼을 두지 않았다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-22 12:16:04 +09:00
parent 8c68990aa9
commit f41733aa3f
5 changed files with 24 additions and 7 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260922c" />
<link rel="stylesheet" href="/static/project.css?v=20260922d" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -84,5 +84,5 @@
</div>
</div>
<script src="/static/project.js?v=20260922c" defer></script>
<script src="/static/project.js?v=20260922d" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260922c" />
<link rel="stylesheet" href="/static/project.css?v=20260922d" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20260922c" defer></script>
<script src="/static/project.js?v=20260922d" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260922c" />
<link rel="stylesheet" href="/static/project.css?v=20260922d" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -453,5 +453,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260922c" defer></script>
<script src="/static/project.js?v=20260922d" defer></script>
{% endblock %}
+9
View File
@@ -684,6 +684,15 @@
.pj-icon-btn[disabled] { opacity: .3; cursor: default; }
.pj-add-stage { width: 100%; padding: 10px; border: 1px dashed #c9cdd3; border-radius: 12px; background: #fff; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; }
.pj-add-stage:hover { border-color: #1e1f21; color: #1e1f21; }
/* 세션 맨 아래 "+ 업무 추가" — 카드가 많아 .pj-col-body 가 스크롤돼도
컬럼 바닥에 그대로 남는다(flex: none). */
.pj-col-addtask {
flex: none; width: 100%; margin-top: 8px; padding: 7px 10px;
border: none; border-radius: 8px; background: transparent;
color: var(--pj-ink-soft); font-size: 13px; font-weight: 600;
text-align: left; cursor: pointer;
}
.pj-col-addtask:hover { background: rgba(255,255,255,.75); color: var(--pj-ink); }
/* 세션(컬럼) 드래그 재정렬 */
.pj-col-head[draggable="true"] { cursor: grab; }
+9 -1
View File
@@ -1790,7 +1790,12 @@
'<button type="button" class="pj-icon-btn pj-col-del" title="세션 삭제">×</button>' +
"</span>"
: "") +
"</div><div class=\"pj-col-body\"></div>";
"</div><div class=\"pj-col-body\"></div>" +
// 세션 맨 아래 "+ 업무 추가" — 카드 목록이 길어져도 컬럼 바닥에
// 고정으로 남는다(.pj-col-body 만 스크롤).
(canManage
? '<button type="button" class="pj-col-addtask">+ 업무 추가</button>'
: "");
const body = col.querySelector(".pj-col-body");
const colTasks = vis.filter(function (t) { return t.stage_id === s.id; });
col.querySelector(".pj-col-count").textContent = colTasks.length;
@@ -1800,6 +1805,9 @@
wireColumnControls(col, s);
wireColumnDrag(col, s);
wireStageAddTask(body, s);
col.querySelector(".pj-col-addtask").addEventListener("click", function () {
openTaskModal(null, s.id);
});
}
board.appendChild(col);
});