feat(project): 업무 편집 상단 UI를 아사나 스타일 목록형으로 변경
- 버튼 줄 오른쪽 끝에 패널 접기(→|) 아이콘 버튼 추가 - 담당자·세션·우선순위·마감일을 "라벨(좌) + 아이콘/값(우)" 목록형 한 줄씩으로 재구성(기존 드롭다운 칩 한 줄 배치 대체) - data-close 아이콘 버튼 클릭이 무시되던 버그 수정 (e.target.hasAttribute → e.target.closest) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922k" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922l" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -93,5 +93,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/project.js?v=20260922k" defer></script>
|
||||
<script src="/static/project.js?v=20260922l" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922k" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922l" />
|
||||
<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=20260922k" defer></script>
|
||||
<script src="/static/project.js?v=20260922l" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922k" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922l" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -240,6 +240,10 @@
|
||||
<span style="flex:1"></span>
|
||||
<button type="button" class="pj-btn" data-close>취소</button>
|
||||
<button type="button" class="pj-btn pj-btn-primary" id="pj-save-task">저장</button>
|
||||
<!-- 패널 접기 — 아사나처럼 오른쪽 끝의 →| 아이콘으로도 닫을 수 있다. -->
|
||||
<button type="button" class="pj-icon-btn pj-panel-collapse-btn" data-close title="패널 접기">
|
||||
<span class="material-symbols-outlined">last_page</span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- 아사나처럼 큰 제목은 이 무테 입력칸이 대신한다. -->
|
||||
<input type="hidden" id="pj-t-id" />
|
||||
@@ -247,38 +251,50 @@
|
||||
|
||||
<div class="pj-modal-body">
|
||||
<div class="pj-modal-col-main">
|
||||
<!-- 메타 정보 — 담당자·세션·우선순위·마감일을 한 줄에 나란히. -->
|
||||
<div class="pj-meta-row">
|
||||
<div class="pj-meta-field">
|
||||
<span class="pj-meta-label">담당자</span>
|
||||
<select id="pj-t-assignee">
|
||||
<option value="">(미지정)</option>
|
||||
{% for m in members %}
|
||||
<option value="{{ m.user_email }}" data-name="{{ m.user_email.split('@')[0] }}">
|
||||
{{ m.user_email.split('@')[0] }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<!-- 메타 정보 — 아사나처럼 "라벨(좌) + 아이콘/값(우)" 목록형 한 줄씩. -->
|
||||
<div class="pj-meta-list">
|
||||
<div class="pj-meta-row2">
|
||||
<span class="pj-meta-label2">담당자</span>
|
||||
<span class="pj-meta-value2">
|
||||
<span class="material-symbols-outlined pj-meta-ic">account_circle</span>
|
||||
<select id="pj-t-assignee">
|
||||
<option value="">담당자 없음</option>
|
||||
{% for m in members %}
|
||||
<option value="{{ m.user_email }}" data-name="{{ m.user_email.split('@')[0] }}">
|
||||
{{ m.user_email.split('@')[0] }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pj-meta-field">
|
||||
<span class="pj-meta-label">세션</span>
|
||||
<select id="pj-t-stage">
|
||||
{% for s in stages %}
|
||||
<option value="{{ s.id }}">{{ s.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div class="pj-meta-row2">
|
||||
<span class="pj-meta-label2">세션</span>
|
||||
<span class="pj-meta-value2">
|
||||
<span class="material-symbols-outlined pj-meta-ic">view_column</span>
|
||||
<select id="pj-t-stage">
|
||||
{% for s in stages %}
|
||||
<option value="{{ s.id }}">{{ s.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pj-meta-field">
|
||||
<span class="pj-meta-label">우선순위</span>
|
||||
<select id="pj-t-priority">
|
||||
<option value="low">낮음</option>
|
||||
<option value="normal" selected>보통</option>
|
||||
<option value="high">높음</option>
|
||||
</select>
|
||||
<div class="pj-meta-row2">
|
||||
<span class="pj-meta-label2">우선순위</span>
|
||||
<span class="pj-meta-value2">
|
||||
<span class="material-symbols-outlined pj-meta-ic">flag</span>
|
||||
<select id="pj-t-priority">
|
||||
<option value="low">낮음</option>
|
||||
<option value="normal" selected>보통</option>
|
||||
<option value="high">높음</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pj-meta-field">
|
||||
<span class="pj-meta-label">마감일</span>
|
||||
<input type="date" id="pj-t-due" />
|
||||
<div class="pj-meta-row2">
|
||||
<span class="pj-meta-label2">마감일</span>
|
||||
<span class="pj-meta-value2">
|
||||
<span class="material-symbols-outlined pj-meta-ic">event</span>
|
||||
<input type="date" id="pj-t-due" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -452,5 +468,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260922k" defer></script>
|
||||
<script src="/static/project.js?v=20260922l" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
+17
-11
@@ -465,18 +465,24 @@
|
||||
color: var(--pj-ink); box-sizing: border-box;
|
||||
}
|
||||
.pj-t-title-input:focus { outline: none; background: #f6f7f8 !important; border-radius: 8px; }
|
||||
.pj-meta-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
|
||||
.pj-meta-field { flex: 1 1 110px; min-width: 100px; }
|
||||
.pj-meta-label { display: block; font-size: 10.5px; font-weight: 700; color: var(--pj-ink-soft);
|
||||
text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
|
||||
.pj-meta-field select, .pj-meta-field input {
|
||||
display: block; width: 100%; margin: 0 !important; padding: 6px 8px !important;
|
||||
border: 1px solid var(--pj-border) !important; border-radius: 8px !important;
|
||||
font-size: 12.5px !important; font-family: inherit; background: #fafafa !important; box-sizing: border-box;
|
||||
/* 메타 정보 — 아사나처럼 "라벨(좌, 고정폭) + 아이콘/값(우)" 목록형 한 줄씩. */
|
||||
.pj-meta-list { display: flex; flex-direction: column; margin-bottom: 4px; }
|
||||
.pj-meta-row2 {
|
||||
display: flex; align-items: center; min-height: 40px;
|
||||
border-bottom: 1px solid #f1f2f4; gap: 12px;
|
||||
}
|
||||
.pj-meta-field select:hover, .pj-meta-field input:hover,
|
||||
.pj-meta-field select:focus, .pj-meta-field input:focus {
|
||||
border-color: var(--pj-accent) !important; background: var(--pj-accent-tint) !important; outline: none;
|
||||
.pj-meta-label2 { flex: 0 0 92px; font-size: 13px; font-weight: 600; color: var(--pj-ink-soft); }
|
||||
.pj-meta-value2 { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
|
||||
.pj-meta-ic { font-size: 18px; color: #9aa1a9; flex: none; }
|
||||
.pj-meta-value2 select, .pj-meta-value2 input {
|
||||
display: block; width: auto; max-width: 100%; margin: 0 !important; padding: 6px 8px !important;
|
||||
border: 1px solid transparent !important; border-radius: 6px !important; background: transparent !important;
|
||||
font-size: 13.5px !important; font-weight: 600; font-family: inherit; color: var(--pj-ink);
|
||||
box-sizing: border-box; cursor: pointer;
|
||||
}
|
||||
.pj-meta-value2 select:hover, .pj-meta-value2 input:hover,
|
||||
.pj-meta-value2 select:focus, .pj-meta-value2 input:focus {
|
||||
border-color: var(--pj-border) !important; background: #f6f7f8 !important; outline: none;
|
||||
}
|
||||
.pj-extra-label { font-size: 12.5px; font-weight: 700; color: var(--pj-ink-soft); margin-right: auto; }
|
||||
.pj-modal-card label { display: block; font-size: 12.5px; font-weight: 600; color: #525860; margin-bottom: 12px; }
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
function wireModalClose(modal) {
|
||||
if (!modal) return;
|
||||
modal.addEventListener("click", function (e) {
|
||||
if (e.target === modal || e.target.hasAttribute("data-close")) closeModal(modal);
|
||||
if (e.target === modal || e.target.closest("[data-close]")) closeModal(modal);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2765,7 +2765,7 @@
|
||||
} finally { taskClosing = false; }
|
||||
}
|
||||
taskModal.addEventListener("click", function (e) {
|
||||
if (e.target === taskModal || e.target.hasAttribute("data-close")) attemptCloseTaskModal();
|
||||
if (e.target === taskModal || e.target.closest("[data-close]")) attemptCloseTaskModal();
|
||||
});
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (e.key === "Escape" && !taskModal.hidden) { e.preventDefault(); attemptCloseTaskModal(); }
|
||||
@@ -2808,7 +2808,7 @@
|
||||
try { list = (await api("GET", "/project/api/projects/" + projId + "/members")).members || []; }
|
||||
catch (_) { list = []; }
|
||||
}
|
||||
sel.innerHTML = '<option value="">(미지정)</option>' + list.map(function (m) {
|
||||
sel.innerHTML = '<option value="">담당자 없음</option>' + list.map(function (m) {
|
||||
const name = idOf(m.user_email);
|
||||
return '<option value="' + m.user_email + '" data-name="' + escapeHtml(name) + '">' + escapeHtml(name) + "</option>";
|
||||
}).join("");
|
||||
|
||||
Reference in New Issue
Block a user