8c68990aa9
- /project/ 가 프로젝트 홈(카드 그리드) 대신 "내 업무" 화면이 된다 (project/mytasks.html). 내가 담당자인 업무를 한 표에 모아 보여준다 — 완료 체크박스 · 업무 · 프로젝트 · 세션 · 우선순위 · 시작 · 마감, 헤더 클릭 정렬, 진행중/완료/전체 필터, 진행·완료·지연 요약. 체크박스로 그 자리에서 완료 토글, 행을 누르면 그 프로젝트로 이동하며 업무 편집 팝업(?task=), 우클릭은 열기/완료/삭제. - 좌측 "내 업무"는 접이식 패널을 없애고 이 화면으로 가는 링크로 바꿨다. - 좌측 사이드바를 project/_side.html 로 뽑아 두 화면이 공용으로 쓴다. - 홈 전용 코드 삭제: templates/project/index.html, project.js 의 initHome/wireProjectGridDrag/updateMyTreeCounts/wireMyTreeToggles(약 900줄), router 의 홈 카드 집계와 _group_my_tasks, project.css 의 홈 카드/내 업무 트리 스타일. 새 프로젝트 모달은 두 화면이 쓰도록 initNewProjectModal 로 분리했다. - 업무 편집 팝업: 하위 업무를 우측 칼럼에서 빼내 설명 바로 아래, 팝업 너비 전체를 쓰는 행으로 옮겼다(.pj-subtask-full). 제목 왼쪽 체크박스로 완료를 토글하고 완료된 줄은 반투명(50%) + 취소선. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
458 lines
22 KiB
HTML
458 lines
22 KiB
HTML
{% extends "erp_base.html" %}
|
||
|
||
{% block head_extra %}
|
||
<link rel="stylesheet" href="/static/project.css?v=20260922c" />
|
||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||
<!-- 타임라인 vis-timeline — self-host -->
|
||
<link href="/static/vendor/vis-timeline/vis-timeline-graph2d.min.css" rel="stylesheet" />
|
||
{% endblock %}
|
||
|
||
{% block topbar_actions %}
|
||
<a class="pj-bell" href="/project/inbox" title="알림센터">
|
||
<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 content %}
|
||
<div class="pj-wrap pj-project-view"
|
||
data-project-id="{{ project.id }}"
|
||
data-can-manage="{{ 'true' if can_manage else 'false' }}"
|
||
data-is-admin="{{ 'true' if is_admin else 'false' }}"
|
||
data-is-super="{{ 'true' if user.is_super_admin else 'false' }}"
|
||
data-me="{{ user.email }}">
|
||
|
||
<div class="pj-layout">
|
||
<!-- ── 좌측 사이드바 — 내 업무 화면과 공용(project/_side.html) ── -->
|
||
{% with current_pid = project.id %}{% include "project/_side.html" %}{% endwith %}
|
||
|
||
<!-- ── 우측: 뷰 ── -->
|
||
<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' }}">{{ project.name }}</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] }}{% 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" id="pj-scope-toggle">
|
||
<button type="button" class="pj-tab is-active" data-scope="project">이 프로젝트</button>
|
||
<button type="button" class="pj-tab" data-scope="all">전체 프로젝트</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 달력 (휴가 모듈과 동일한 월간 그리드) -->
|
||
<div class="pj-view" data-view="calendar" hidden>
|
||
<div class="pj-cal-head">
|
||
<a class="pj-btn pj-nav-btn" href="/project/p/{{ project.id }}?y={{ prev_y }}&m={{ prev_m }}">‹</a>
|
||
<h2 class="pj-cal-title">{{ year }}년 {{ month }}월</h2>
|
||
<a class="pj-btn pj-nav-btn" href="/project/p/{{ project.id }}?y={{ next_y }}&m={{ next_m }}">›</a>
|
||
<a class="pj-btn pj-today-btn" href="/project/p/{{ project.id }}">오늘</a>
|
||
</div>
|
||
|
||
<div class="pj-cal">
|
||
<div class="pj-wd-row">
|
||
{% for wd in weekdays %}
|
||
<div class="pj-wd {% if loop.index0 == 0 %}pj-red{% elif loop.index0 == 6 %}pj-blue{% endif %}">{{ wd }}</div>
|
||
{% endfor %}
|
||
</div>
|
||
|
||
{% for week in weeks %}
|
||
<div class="pj-week">
|
||
<div class="pj-week-days">
|
||
{% for cell in week.days %}
|
||
<div class="pj-day {% if not cell.in_month %}pj-out{% endif %} {% if cell.is_today %}pj-today{% endif %}"
|
||
data-date="{{ cell.date }}" {% if cell.holiday_name %}title="{{ cell.holiday_name }}"{% endif %}>
|
||
<span class="pj-day-num
|
||
{% if cell.is_sunday or cell.holiday_name %}pj-red{% elif cell.is_saturday %}pj-blue{% endif %}">{{ cell.day }}</span>
|
||
{% if cell.holiday_name %}<span class="pj-day-holiday">{{ cell.holiday_name }}</span>{% endif %}
|
||
</div>
|
||
{% endfor %}
|
||
</div>
|
||
|
||
<!-- 막대는 클라이언트(JS)가 그린다 — 깔끔한 칩 + 행 제한(+N) + 드래그 이동 -->
|
||
<div class="pj-week-bars"></div>
|
||
</div>
|
||
{% endfor %}
|
||
</div>
|
||
</div>
|
||
<!-- 타임라인 -->
|
||
<div class="pj-view" data-view="timeline" hidden>
|
||
<div class="pj-tl-toolbar">
|
||
<button type="button" class="pj-btn pj-today-btn" id="pj-tl-today">오늘</button>
|
||
</div>
|
||
<div id="pj-timeline"></div>
|
||
</div>
|
||
<!-- 보드(칸반=세션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면.
|
||
최대 4열 매이슨리로 배치하고, 세션이 늘어나면 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>
|
||
<!-- 가로 스크롤 막대 — 네이티브 막대는 CSS 로 숨겨두므로(자동숨김
|
||
환경 대응) 보드 바깥에 직접 그린다. JS(attachHScrollIndicator)가
|
||
pj-board 의 scrollLeft 와 동기화한다. -->
|
||
<div class="pj-hbar" id="pj-board-hbar" hidden><div class="pj-hbar-thumb"></div></div>
|
||
</div>
|
||
<!-- 리스트 -->
|
||
<div class="pj-view" data-view="list" hidden>
|
||
<table class="pj-table" id="pj-list">
|
||
<thead>
|
||
<tr><th>업무</th><th>담당자</th><th>세션</th><th>우선순위</th><th>시작</th><th>마감</th></tr>
|
||
</thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<!-- 대시보드 — 통계 카드/차트는 전부 클라이언트가 그린다(보드/리스트와
|
||
같은 방식, 서버 재조회 없이 이미 로드된 tasks 로 즉시 집계). -->
|
||
<div class="pj-view" data-view="dashboard" hidden>
|
||
<div class="pj-dash" id="pj-dash"></div>
|
||
</div>
|
||
</section>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 새 프로젝트 모달 — 좌측 프로젝트 목록의 + 버튼(홈 화면과 동일 폼) -->
|
||
<div class="pj-modal" id="pj-modal-project" hidden>
|
||
<div class="pj-modal-card">
|
||
<h3>새 프로젝트</h3>
|
||
<label>이름<input type="text" id="pj-f-name" placeholder="프로젝트 이름" /></label>
|
||
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
||
<div class="pj-form-row">
|
||
<label>시작일<input type="date" id="pj-f-start" /></label>
|
||
<label>마감일<input type="date" id="pj-f-due" /></label>
|
||
</div>
|
||
<label>색상
|
||
<span class="pj-color-palette" id="pj-f-colors"></span>
|
||
</label>
|
||
<div class="pj-field-label">멤버
|
||
<div class="pj-member-picker" id="pj-f-members">불러오는 중…</div>
|
||
</div>
|
||
<div class="pj-modal-actions">
|
||
<button type="button" class="pj-btn" data-close>취소</button>
|
||
<button type="button" class="pj-btn pj-btn-primary" id="pj-save-project">만들기</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 프로젝트 수정 모달 — 좌측 프로젝트 목록의 ✎ 버튼 -->
|
||
<div class="pj-modal" id="pj-modal-edit" hidden>
|
||
<div class="pj-modal-card">
|
||
<h3>프로젝트 수정</h3>
|
||
<input type="hidden" id="pj-e-id" />
|
||
<label>이름<input type="text" id="pj-e-name" placeholder="프로젝트 이름" /></label>
|
||
<label>설명<textarea id="pj-e-desc" rows="2"></textarea></label>
|
||
<div class="pj-form-row">
|
||
<label>시작일<input type="date" id="pj-e-start" /></label>
|
||
<label>마감일<input type="date" id="pj-e-due" /></label>
|
||
</div>
|
||
<label>색상
|
||
<span class="pj-color-palette" id="pj-e-colors"></span>
|
||
</label>
|
||
<label class="pj-time-toggle">
|
||
<input type="checkbox" id="pj-e-done" /> 프로젝트 완료 (목록 끝으로 이동·비활성)
|
||
</label>
|
||
<div class="pj-modal-actions">
|
||
<button type="button" class="pj-btn pj-btn-danger" id="pj-delete-project">삭제</button>
|
||
<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-edit">저장</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 세션 추가/편집 모달 — 보드의 "+ 세션 추가" 버튼과 세션 헤더의 ✎(세션 편집) 공용 -->
|
||
<div class="pj-modal" id="pj-modal-stage" hidden>
|
||
<div class="pj-modal-card">
|
||
<h3 id="pj-stage-modal-title">새 세션</h3>
|
||
<input type="hidden" id="pj-stg-id" />
|
||
<label>이름<input type="text" id="pj-stg-name" placeholder="세션 이름" /></label>
|
||
<label>색상
|
||
<span class="pj-color-palette" id="pj-stg-colors"></span>
|
||
</label>
|
||
<div class="pj-modal-actions">
|
||
<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-stage">저장</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 업무 모달 -->
|
||
<div class="pj-modal" id="pj-modal-task" hidden>
|
||
<div class="pj-modal-card pj-task-modal-card">
|
||
<!-- 아사나처럼 큰 제목은 아래 무테 입력칸이 대신한다 — 이 표시는 작은
|
||
모드 안내(새 업무/업무 편집)만 한다. -->
|
||
<h3 id="pj-task-modal-title" class="pj-modal-kicker">새 업무</h3>
|
||
<input type="hidden" id="pj-t-id" />
|
||
<input type="text" id="pj-t-title" class="pj-t-title-input" placeholder="업무 제목" />
|
||
|
||
<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>
|
||
<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>
|
||
<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>
|
||
</div>
|
||
<div class="pj-meta-row">
|
||
<div class="pj-meta-field">
|
||
<span class="pj-meta-label">시작일</span>
|
||
<input type="date" id="pj-t-start" />
|
||
</div>
|
||
<div class="pj-meta-field">
|
||
<span class="pj-meta-label">마감일</span>
|
||
<input type="date" id="pj-t-due" />
|
||
</div>
|
||
</div>
|
||
<label class="pj-time-toggle">
|
||
<input type="checkbox" id="pj-t-usetime" /> 시간 지정 (체크 안 하면 종일)
|
||
</label>
|
||
<div class="pj-form-row" id="pj-time-row">
|
||
<label>시작 시간<input type="time" id="pj-t-stime" disabled /></label>
|
||
<label>마감 시간<input type="time" id="pj-t-dtime" disabled /></label>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- 설명 — 팝업 너비 전체를 쓴다(.pj-modal-body 그리드에서
|
||
1/-1 로 두 칼럼을 가로지르는 아랫줄). -->
|
||
<div class="pj-desc-block">
|
||
<div class="pj-desc-toolbar">
|
||
<span class="pj-extra-label">설명</span>
|
||
<span class="pj-muted-sm" id="pj-desc-hint"></span>
|
||
</div>
|
||
<div class="pj-desc-fmtbar" id="pj-desc-fmtbar">
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="bold" title="굵게 (Ctrl+B)"><b>B</b></button>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="italic" title="기울임 (Ctrl+I)"><i>I</i></button>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="underline" title="밑줄 (Ctrl+U)"><u>U</u></button>
|
||
<span class="pj-desc-fmtsep"></span>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="insertUnorderedList" title="글머리 기호 목록">☰•</button>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="insertOrderedList" title="번호 매기기 목록">☰1</button>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="formatBlock" data-arg="blockquote" title="인용구">❝</button>
|
||
<span class="pj-desc-fmtsep"></span>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="createLink" title="링크 삽입">🔗</button>
|
||
<button type="button" class="pj-desc-fmtbtn" data-cmd="removeFormat" title="서식 지우기">✕서식</button>
|
||
<span class="pj-desc-fmtsep"></span>
|
||
<label class="pj-desc-fmtbtn" id="pj-desc-imgbtn" title="이미지 추가"><span class="material-symbols-outlined">image</span><input type="file" id="pj-desc-img-input" accept="image/*" hidden /></label>
|
||
</div>
|
||
<div class="pj-desc-wrap">
|
||
<div class="pj-desc-editor" id="pj-t-desc" contenteditable="true" data-placeholder="설명을 입력하세요… (이미지는 붙여넣기 또는 위 버튼으로 추가)"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 하위 업무 — 설명 바로 아래 줄에서 팝업 너비 전체를 쓴다
|
||
(.pj-modal-body 그리드의 3번째 행, 1 / -1). 기존 업무 편집 시에만. -->
|
||
<div class="pj-task-extra pj-subtask-full" id="pj-subtask-block" hidden>
|
||
<div class="pj-extra-head">
|
||
<span class="material-symbols-outlined pj-gicon pj-gicon-sm">checklist</span> 하위 업무
|
||
</div>
|
||
<ul class="pj-subtask-list" id="pj-subtask-list"></ul>
|
||
<div class="pj-subtask-form">
|
||
<input type="text" id="pj-subtask-input" placeholder="하위 업무 제목…" />
|
||
<select id="pj-subtask-add-assignee"><option value="">(미지정)</option></select>
|
||
<input type="date" id="pj-subtask-add-due" />
|
||
<button type="button" class="pj-btn pj-btn-primary" id="pj-subtask-add">추가</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pj-modal-col-side">
|
||
<!-- 첨부파일 (기존 업무 편집 시에만) -->
|
||
<div class="pj-task-extra" id="pj-attach-block" hidden>
|
||
<div class="pj-extra-head">
|
||
<span class="material-symbols-outlined pj-gicon pj-gicon-sm">attach_file</span> 첨부파일
|
||
<label class="pj-upload-btn">
|
||
파일 추가<input type="file" id="pj-attach-input" hidden />
|
||
</label>
|
||
</div>
|
||
<ul class="pj-attach-list" id="pj-attach-list"></ul>
|
||
</div>
|
||
|
||
<!-- 연결된 프로젝트 — 멀티호밍(아사나식). 기존 업무 편집 시에만 -->
|
||
<div class="pj-task-extra" id="pj-links-block" hidden>
|
||
<div class="pj-extra-head">
|
||
<span class="material-symbols-outlined pj-gicon pj-gicon-sm">link</span> 연결된 프로젝트
|
||
</div>
|
||
<div class="pj-link-chips" id="pj-link-chips"></div>
|
||
<div class="pj-link-form" id="pj-link-form">
|
||
<select id="pj-link-project"><option value="">프로젝트 선택…</option></select>
|
||
<select id="pj-link-stage"><option value="">세션 선택…</option></select>
|
||
<button type="button" class="pj-btn pj-btn-primary" id="pj-link-save">추가</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 댓글(활동) — 아사나처럼 맨 아래. 기존 업무 편집 시에만 -->
|
||
<div class="pj-task-extra" id="pj-comment-block" hidden>
|
||
<div class="pj-extra-head">
|
||
<span class="pj-cmt-emoji">💬</span> 댓글
|
||
</div>
|
||
<ul class="pj-comment-list" id="pj-comment-list"></ul>
|
||
<div class="pj-comment-form">
|
||
<input type="text" id="pj-comment-input" placeholder="댓글 입력…" />
|
||
<button type="button" class="pj-btn pj-btn-primary" id="pj-comment-send">등록</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pj-modal-actions">
|
||
<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>
|
||
<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>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{% if is_admin %}
|
||
<!-- 멤버 배정 모달 — 등록된 사용자(프로젝트 권한 보유)를 자동 목록화 -->
|
||
<div class="pj-modal" id="pj-modal-member" hidden>
|
||
<div class="pj-modal-card">
|
||
<h3>멤버 배정</h3>
|
||
<p class="pj-modal-hint">관리자 페이지에서 <b>프로젝트 관리</b> 권한을 켠 직원이 후보로 나옵니다. 여러 명을 한 번에 선택할 수 있습니다.</p>
|
||
<div class="pj-field-label">직원
|
||
<div class="pj-member-picker" id="pj-m-users">불러오는 중…</div>
|
||
</div>
|
||
<label>역할
|
||
<select id="pj-m-role">
|
||
<option value="member" selected>멤버</option>
|
||
<option value="manager">관리(서브·업무 관리)</option>
|
||
</select>
|
||
</label>
|
||
<div class="pj-modal-actions">
|
||
<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-member">배정</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endif %}
|
||
|
||
<!-- 댓글만 보는 채팅형 팝업 — 업무 카드/내 업무의 말풍선 아이콘 더블클릭(홈 화면과 동일 기능) -->
|
||
<div class="pj-modal" id="pj-modal-comments" hidden>
|
||
<div class="pj-modal-card pj-modal-chat">
|
||
<div class="pj-chat-head">
|
||
<h3 id="pj-cm-title">댓글</h3>
|
||
</div>
|
||
<input type="hidden" id="pj-cm-task-id" />
|
||
<ul class="pj-chat-list" id="pj-chat-list"></ul>
|
||
<div class="pj-chat-pending" id="pj-cm-pending" hidden></div>
|
||
<div class="pj-comment-form">
|
||
<label class="pj-chat-attach-btn" title="파일 추가">
|
||
<span class="material-symbols-outlined">attach_file</span>
|
||
<input type="file" id="pj-cm-file-input" multiple hidden />
|
||
</label>
|
||
<input type="text" id="pj-cm-input" placeholder="댓글 입력… (이미지는 붙여넣기 가능)" />
|
||
<button type="button" class="pj-btn pj-btn-primary" id="pj-cm-send">전송</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 전체 멤버 아이콘 클릭 팝업 — 그 사람이 담당자인 업무를 프로젝트/세션/마감일과 함께 나열 -->
|
||
<div class="pj-modal" id="pj-modal-member-tasks" hidden>
|
||
<div class="pj-modal-card pj-mt-card">
|
||
<h3 id="pj-mt-title">업무</h3>
|
||
<p class="pj-modal-hint">더블클릭하면 업무 편집 창이 열립니다.</p>
|
||
<div class="pj-mt-head" id="pj-mt-head">
|
||
<span class="pj-mt-h" data-sort="project">프로젝트<span class="pj-mt-sort-icon"></span></span>
|
||
<span class="pj-mt-h" data-sort="stage">세션<span class="pj-mt-sort-icon"></span></span>
|
||
<span class="pj-mt-h" data-sort="title">업무<span class="pj-mt-sort-icon"></span></span>
|
||
<span class="pj-mt-h" data-sort="due">마감일<span class="pj-mt-sort-icon"></span></span>
|
||
</div>
|
||
<ul class="pj-mt-list" id="pj-mt-list"></ul>
|
||
<div class="pj-modal-actions">
|
||
<span style="flex:1"></span>
|
||
<button type="button" class="pj-btn pj-btn-primary" data-close>닫기</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
window.PJ_COLORS = {{ color_palette | tojson }};
|
||
window.PJ_STAGE_COLORS = {{ stage_color_palette | tojson }};
|
||
</script>
|
||
<!-- 데이터 -->
|
||
<script id="pj-data" type="application/json">
|
||
{
|
||
"project": {{ project | tojson }},
|
||
"currentProjectId": {{ current_project_id | tojson }},
|
||
"stages": {{ stages | tojson }},
|
||
"tasks": {{ tasks | tojson }},
|
||
"members": {{ members | tojson }},
|
||
"priorityLabels": {{ priority_labels | tojson }},
|
||
"projects": {{ projects_meta | tojson }},
|
||
"stagesByProject": {{ stages_by_project | tojson }},
|
||
"boardStages": {{ board_stage_names | tojson }},
|
||
"avatars": {{ avatars | tojson }}
|
||
}
|
||
</script>
|
||
|
||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||
<script src="/static/project.js?v=20260922c" defer></script>
|
||
{% endblock %}
|