- {# 시작일·마감일은 버튼 하나(아사나식 날짜 팝업의 "+ 시작일") — enhanceDateInput(startInput) #}
-
시작일 · 마감일
+ {# 마감일 — 오른쪽 달력 아이콘(없으면 점선 원). 시작일은 날짜 팝업의 "+ 시작일"로 — enhanceDateInput(startInput) #}
+
마감일
diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html
index a4ce128..5c59b21 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 %}
@@ -99,5 +99,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/mytasks.html b/app/modules/project/templates/project/mytasks.html
index bef4f93..7b7de69 100644
--- a/app/modules/project/templates/project/mytasks.html
+++ b/app/modules/project/templates/project/mytasks.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -98,5 +98,5 @@
"today": {{ today | tojson }}
}
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html
index 13ee660..89fcfe5 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 %}
-
+
@@ -466,5 +466,5 @@
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/trash.html b/app/modules/project/templates/project/trash.html
index e3a2127..44b2e79 100644
--- a/app/modules/project/templates/project/trash.html
+++ b/app/modules/project/templates/project/trash.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -68,5 +68,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
-
+
{% endblock %}
diff --git a/app/static/project.css b/app/static/project.css
index 99a14f5..14f443f 100644
--- a/app/static/project.css
+++ b/app/static/project.css
@@ -589,6 +589,15 @@
.pj-date-btn:hover { background: #f6f7f8; border-color: #c4c9d0; }
.pj-date-btn.is-empty { color: #9aa1a9; }
.pj-date-btn.is-overdue { color: #c22b10; }
+/* 날짜가 없을 때 — 테두리 없이 점선 원 달력 아이콘만(아사나) */
+.pj-date-btn.is-icon-only {
+ width: 32px; height: 32px; padding: 0; justify-content: center; border: none; border-radius: 50%;
+ background: transparent; color: #6d6e6f;
+}
+.pj-date-btn.is-icon-only:hover { background: #eceef0; color: #1e1f21; }
+/* 라벨 오른쪽에 바로 날짜 버튼(프로젝트 새로 만들기·수정 팝업의 마감일) */
+.pj-modal-card .pj-field-label.pj-field-inline { display: flex; align-items: center; gap: 10px; }
+.pj-field-inline .pj-date-btn { margin-top: 0; }
/* 하위 작업 추가 줄 안에서는 옆 칸들과 높이를 맞춘다 */
.pj-subtask-form .pj-date-btn { margin-top: 0; height: 32px; padding: 0 10px; font-size: 12.5px; }
/* 화면엔 안 보이지만 달력이 버튼 자리에 뜨도록 렌더는 유지(display:none 이면 showPicker 불가) */
@@ -648,8 +657,8 @@
}
/* 프로젝트 아이콘 고르기(아사나) — 회색 아이콘 격자, 고른 것은 보라 강조. 길면 칸 안에서 스크롤 */
.pj-icon-palette {
- display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 6px; margin-top: 6px;
- max-height: 186px; overflow-y: auto; padding: 2px;
+ /* 높이 제한 없음 — 아이콘 전부가 스크롤 없이 보이고 팝업이 그만큼 길어진다 */
+ display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 6px; margin-top: 6px; padding: 2px;
}
.pj-icon-pick {
width: 38px; height: 38px; padding: 0; border: none; border-radius: 8px; background: transparent;
diff --git a/app/static/project.js b/app/static/project.js
index 0ea85d4..8897755 100644
--- a/app/static/project.js
+++ b/app/static/project.js
@@ -427,9 +427,15 @@
const text = start && due ? label(start) + " – " + label(due)
: start ? label(start) + " –" : label(due);
const di = dueInfo(due, false);
- btn.innerHTML = '
calendar_month ' +
- '
';
- btn.querySelector(".pj-date-btn-text").textContent = text || (opts.placeholder || "날짜 선택");
+ // opts.iconOnly — 날짜가 없으면 글자 없이 점선 원 달력 아이콘만(아사나), 있으면 아이콘 + 날짜.
+ if (opts.iconOnly && !text) {
+ btn.innerHTML = DUE_EMPTY_ICON_SVG;
+ } else {
+ btn.innerHTML = '
calendar_month ' +
+ '
';
+ btn.querySelector(".pj-date-btn-text").textContent = text || (opts.placeholder || "날짜 선택");
+ }
+ btn.classList.toggle("is-icon-only", !!opts.iconOnly && !text);
btn.classList.toggle("is-empty", !text);
btn.classList.toggle("is-overdue", !!di && di.cls === "is-overdue");
btn.title = text ? "날짜 변경" : "날짜 지정";
@@ -1175,8 +1181,8 @@
}
// 프로젝트 모달의 날짜 칸 — 브라우저 기본 달력 대신 아사나식 날짜 팝업.
- enhanceDateInput(el("pj-f-due"), { placeholder: "마감일 없음" });
- enhanceDateInput(el("pj-e-due"), { startInput: el("pj-e-start"), placeholder: "날짜 없음" });
+ enhanceDateInput(el("pj-f-due"), { iconOnly: true });
+ enhanceDateInput(el("pj-e-due"), { startInput: el("pj-e-start"), iconOnly: true });
// "+" — 새 최상위 프로젝트. 기본은 만든 프로젝트 화면으로 이동한다.
initNewProjectModal(isAdmin, cfg.onCreated || function (project) {