feat(project): 아사나식 머리(제목·탭 2줄)·섹션 추가 위치·팝업 제목 KSN 프로그램
- 프로젝트 제목(색 네모 아이콘+이름)+멤버 / 뷰 탭을 왼쪽 위 2줄로 - "전체 프로젝트" 스코프면 제목을 "전체 프로젝트"로, 멤버 숨김 - "+ 섹션 추가"를 마지막 섹션 바로 오른쪽으로, 위쪽 바 "+ 작업 추가" 제거 - 수신함 오른쪽 작업 창(embed) 맨 위에 "프로젝트로 이동" 버튼 - 하위 작업에 또 하위 작업이 있으면 "N ⤷" 아이콘(작업 창·카드 펼침) - erp-dialog: 화면별 제목(window.ERP_DIALOG_TITLE)·erpPrompt 추가, project.js 의 alert/confirm/prompt 를 공용 창으로(제목 "KSN 프로그램") Co-Authored-By: Claude Opus 5.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=20260928d" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -19,9 +19,6 @@
|
||||
<span class="material-symbols-outlined">notifications</span>
|
||||
<span class="pj-bell-badge" id="pj-bell-badge" hidden>0</span>
|
||||
</a>
|
||||
{% if can_manage %}
|
||||
<button type="button" class="pj-btn pj-btn-primary" id="pj-new-task">+ 작업 추가</button>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %}
|
||||
@@ -40,39 +37,46 @@
|
||||
|
||||
<!-- ── 우측: 뷰 ── -->
|
||||
<section class="pj-main">
|
||||
<!-- 머리 — 아사나처럼 왼쪽 위에 두 줄: ① 프로젝트 아이콘·제목 + 멤버 아이콘,
|
||||
② 뷰 탭(보드/목록/캘린더/타임라인/대시보드). 오른쪽엔 스코프 토글. -->
|
||||
<div class="pj-toolbar">
|
||||
<div class="pj-view-tabs" id="pj-view-tabs">
|
||||
<button type="button" class="pj-tab is-active" data-view="board">보드</button>
|
||||
<button type="button" class="pj-tab" data-view="list">목록</button>
|
||||
<button type="button" class="pj-tab" data-view="calendar">캘린더</button>
|
||||
<button type="button" class="pj-tab" data-view="timeline">타임라인</button>
|
||||
<button type="button" class="pj-tab" data-view="dashboard">대시보드</button>
|
||||
</div>
|
||||
<!-- 프로젝트 제목 + 이 프로젝트의 멤버 아이콘.
|
||||
예전엔 좌측 사이드바에 이름 목록으로 있던 것을 아사나처럼 제목
|
||||
옆 겹친 아바타로 옮겼다. 마우스를 올리면 이름(data-tip →
|
||||
initHoverTips), 클릭하면 그 사람이 이 프로젝트에서 맡은 업무
|
||||
팝업, 우클릭(관리자)하면 제외. 목록은 renderMemberList 가
|
||||
같은 마크업으로 다시 그린다. -->
|
||||
<div class="pj-title-wrap">
|
||||
<h1 class="pj-project-title">
|
||||
<span class="pj-project-title-pill" style="--pj-color: {{ project.color or '#4573d2' }}">{% if project.icon %}<span class="material-symbols-outlined pj-pill-ic">{{ project.icon }}</span>{% endif %}<span class="pj-pill-name">{{ project.name }}</span></span>
|
||||
</h1>
|
||||
<div class="pj-title-members" id="pj-member-list">
|
||||
{% for m in members %}
|
||||
<span class="pj-tmember" data-email="{{ m.user_email }}"
|
||||
data-tip="{{ m.user_email.split('@')[0][:1]|upper }}{{ m.user_email.split('@')[0][1:] }}{% if m.role == 'manager' %} (관리){% endif %}">
|
||||
{% if avatars.get(m.user_email | lower) %}
|
||||
<img class="pj-avatar pj-tmember-av" src="{{ avatars[m.user_email | lower] }}" alt="" referrerpolicy="no-referrer" />
|
||||
{% else %}
|
||||
<span class="material-symbols-outlined pj-gicon pj-tmember-av">account_circle</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="pj-head-left">
|
||||
<!-- 프로젝트 제목 + 이 프로젝트의 멤버 아이콘.
|
||||
마우스를 올리면 이름(data-tip → initHoverTips), 클릭하면 그 사람이
|
||||
이 프로젝트에서 맡은 업무 팝업, 우클릭(관리자)하면 제외. 목록은
|
||||
renderMemberList 가 같은 마크업으로 다시 그린다.
|
||||
"전체 프로젝트" 스코프에선 제목이 "전체 프로젝트"로 바뀌고 멤버는 숨긴다
|
||||
(.pj-title-wrap.is-all-scope). -->
|
||||
<div class="pj-title-wrap" id="pj-title-wrap">
|
||||
<h1 class="pj-project-title">
|
||||
<span class="pj-project-title-pill" style="--pj-color: {{ project.color or '#4573d2' }}"><span class="material-symbols-outlined pj-pill-ic">{{ project.icon or 'folder' }}</span><span class="pj-pill-name">{{ project.name }}</span></span>
|
||||
</h1>
|
||||
<h1 class="pj-project-title pj-all-title">
|
||||
<span class="pj-project-title-all"><span class="material-symbols-outlined pj-pill-ic">apps</span><span class="pj-pill-name">전체 프로젝트</span></span>
|
||||
</h1>
|
||||
<div class="pj-title-members" id="pj-member-list">
|
||||
{% for m in members %}
|
||||
<span class="pj-tmember" data-email="{{ m.user_email }}"
|
||||
data-tip="{{ m.user_email.split('@')[0][:1]|upper }}{{ m.user_email.split('@')[0][1:] }}{% if m.role == 'manager' %} (관리){% endif %}">
|
||||
{% if avatars.get(m.user_email | lower) %}
|
||||
<img class="pj-avatar pj-tmember-av" src="{{ avatars[m.user_email | lower] }}" alt="" referrerpolicy="no-referrer" />
|
||||
{% else %}
|
||||
<span class="material-symbols-outlined pj-gicon pj-tmember-av">account_circle</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if is_admin %}
|
||||
<button type="button" class="pj-title-addmember" id="pj-add-member" title="멤버 배정">+</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pj-view-tabs pj-view-tabs-line" id="pj-view-tabs">
|
||||
<button type="button" class="pj-tab is-active" data-view="board">보드</button>
|
||||
<button type="button" class="pj-tab" data-view="list">목록</button>
|
||||
<button type="button" class="pj-tab" data-view="calendar">캘린더</button>
|
||||
<button type="button" class="pj-tab" data-view="timeline">타임라인</button>
|
||||
<button type="button" class="pj-tab" data-view="dashboard">대시보드</button>
|
||||
</div>
|
||||
{% if is_admin %}
|
||||
<button type="button" class="pj-title-addmember" id="pj-add-member" title="멤버 배정">+</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<!-- 아사나처럼 기본은 "이 프로젝트"만 보여준다. 전체 프로젝트 보기는
|
||||
예전처럼 접근 가능한 모든 프로젝트를 합쳐서 보여주는 모드. -->
|
||||
@@ -167,18 +171,16 @@
|
||||
</div>
|
||||
<div id="pj-timeline"></div>
|
||||
</div>
|
||||
<!-- 보드(칸반=세션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면.
|
||||
최대 4열 매이슨리로 배치하고, 세션이 늘어나면 pj-board 안에서만
|
||||
세로 스크롤된다(좌측 프로젝트 목록·우측 내 업무와 스크롤이 서로
|
||||
안 얽히게 각자 독립). "+ 세션 추가" 버튼은 스크롤 영역 밖(고정
|
||||
위치)에 있어 항상 보인다. -->
|
||||
<!-- 보드(칸반=섹션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면.
|
||||
섹션은 가로로 늘어나고 넘치면 pj-board 안에서만 가로 스크롤된다.
|
||||
"+ 섹션 추가"는 마지막 섹션 오른쪽에 붙는다. -->
|
||||
<div class="pj-view" data-view="board">
|
||||
<div class="pj-board-toolbar">
|
||||
<button type="button" class="pj-add-stage" id="pj-board-addstage" hidden>+ 섹션 추가</button>
|
||||
</div>
|
||||
<div class="pj-board" id="pj-board">
|
||||
<div class="pj-board-canvas" id="pj-board-canvas"></div>
|
||||
</div>
|
||||
<!-- "+ 섹션 추가" — 아사나처럼 마지막 섹션 바로 오른쪽. renderBoard 가
|
||||
매번 캔버스 맨 끝으로 옮겨 붙인다(여기 둔 건 첫 로드용 보관 자리). -->
|
||||
<button type="button" class="pj-add-stage pj-board-addstage" id="pj-board-addstage" hidden>+ 섹션 추가</button>
|
||||
<!-- 가로 스크롤 막대 — 네이티브 막대는 CSS 로 숨겨두므로(자동숨김
|
||||
환경 대응) 보드 바깥에 직접 그린다. JS(attachHScrollIndicator)가
|
||||
pj-board 의 scrollLeft 와 동기화한다. -->
|
||||
@@ -242,6 +244,10 @@
|
||||
</button>
|
||||
<button type="button" class="pj-btn pj-btn-complete" id="pj-toggle-complete" hidden>✓ 완료로 표시</button>
|
||||
<button type="button" class="pj-btn pj-btn-danger" id="pj-delete-task" hidden>삭제</button>
|
||||
<!-- 수신함 오른쪽 패널(?embed=1)에서만 보인다 — 이 작업이 있는 프로젝트 화면으로 이동. -->
|
||||
<button type="button" class="pj-btn pj-btn-goto-project" id="pj-goto-project" title="이 작업이 있는 프로젝트 화면으로 이동">
|
||||
<span class="material-symbols-outlined">open_in_new</span> 프로젝트로 이동
|
||||
</button>
|
||||
<span style="flex:1"></span>
|
||||
<!-- 저장 버튼 없음 — 칸마다 바로 저장된다(실시간 저장). 상태만 작게 표시. -->
|
||||
<span class="pj-autosave-state" id="pj-autosave-state" aria-live="polite"></span>
|
||||
@@ -479,5 +485,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260928d" defer></script>
|
||||
<script src="/static/project.js?v=20260928e" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user