Files
dbx-main/app/modules/project/templates/project/project.html
T
king c4fb7761ad feat(project): drop member role from assignment
The role select (member/manager) had no effect on permissions; every
assigned member can view and edit the project. Remove it from the
assign dialog and avatar tooltip; new assignments are always member.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:49:54 +09:00

492 lines
28 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261007c" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — 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" />
<!-- ?embed=1 — 수신함 오른쪽 패널(iframe) 안에서 작업 창만 보이는 모드. 첫 페인트 전에 표시. -->
<script>
if (new URLSearchParams(location.search).get("embed") === "1" && window.parent !== window) {
document.documentElement.classList.add("pj-embed");
}
</script>
{% 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>
{% endblock %}
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% 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, side_active = "" %}{% include "project/_side.html" %}{% endwith %}
<!-- ── 우측: 뷰 ── -->
<section class="pj-main">
<!-- 머리 — 아사나처럼 왼쪽 위에 두 줄: ① 프로젝트 아이콘·제목 + 멤버 아이콘,
② 뷰 탭(보드/목록/캘린더/타임라인/대시보드). 오른쪽엔 스코프 토글. -->
<div class="pj-toolbar">
<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>
</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-filterbar" id="pj-filterbar">
<label class="pj-fb-search">
<span class="material-symbols-outlined">filter_list</span>
<input type="search" id="pj-fb-q" placeholder="이 화면에서 찾기 (제목·설명·담당자)" autocomplete="off" />
</label>
<select id="pj-fb-status" class="pj-fb-select" title="완료 상태">
<option value="all">상태: 전체</option>
<option value="open">미완료</option>
<option value="done">완료</option>
</select>
<select id="pj-fb-assignee" class="pj-fb-select" title="담당자">
<option value="all">담당자: 전체</option>
<option value="me">나</option>
<option value="none">담당자 없음</option>
</select>
<select id="pj-fb-due" class="pj-fb-select" title="마감일">
<option value="all">마감: 전체</option>
<option value="overdue">마감 지남</option>
<option value="today">오늘 마감</option>
<option value="week">이번 주 마감</option>
<option value="none">마감일 없음</option>
</select>
<select id="pj-fb-priority" class="pj-fb-select" title="우선순위">
<option value="all">우선순위: 전체</option>
<option value="high">높음</option>
<option value="normal">보통</option>
<option value="low">낮음</option>
</select>
<select id="pj-fb-sort" class="pj-fb-select" title="정렬">
<option value="manual">정렬: 기본</option>
<option value="due">마감일순</option>
<option value="priority">우선순위순</option>
<option value="title">제목순</option>
<option value="assignee">담당자순</option>
<option value="created">최근 생성순</option>
</select>
<span class="pj-fb-count" id="pj-fb-count" hidden></span>
<button type="button" class="pj-fb-reset" id="pj-fb-reset" hidden>초기화</button>
</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>
<!-- 보드(칸반=섹션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면.
섹션은 가로로 늘어나고 넘치면 pj-board 안에서만 가로 스크롤된다.
"+ 섹션 추가"는 마지막 섹션 오른쪽에 붙는다. -->
<div class="pj-view" data-view="board">
<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 와 동기화한다. -->
<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>
{% include "project/_side_modals.html" %}
<!-- 세션 추가/편집 모달 — 보드의 "+ 세션 추가" 버튼과 세션 헤더의 ✎(세션 편집) 공용 -->
<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="섹션 이름" autocomplete="off" /></label>
<label>색상
<span class="pj-color-palette" id="pj-stg-colors"></span>
</label>
<div class="pj-field-label">기본 담당자
<div class="pj-member-picker" id="pj-stg-assignee"></div>
<span class="pj-modal-hint pj-stg-assignee-hint">이 섹션에 작업을 새로 만들거나 카드를 옮겨오면, 담당자가 비어 있는 작업만 이 사람에게 자동 배정됩니다.</span>
</div>
<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>
<!-- 업무 모달 — 아사나처럼 화면 오른쪽에서 슬라이드로 열리는 패널.
왼쪽 모서리를 드래그해 너비를 바꿀 수 있다(최대 화면 절반, pj-task-panel-resizer). -->
<div class="pj-modal" id="pj-modal-task" hidden>
<div class="pj-modal-card pj-task-modal-card">
<div class="pj-task-panel-resizer" id="pj-task-panel-resizer" title="드래그해서 너비 조절"></div>
<!-- 버튼 줄은 팝업 맨 위에 고정 — 설명·하위업무가 길어져도 스크롤 없이
바로 저장/취소할 수 있다(아래 .pj-modal-actions-top). 카드 맨 위
모서리에 딱 붙는 얇은 줄이라 바로 아래 제목과 안 겹친다. -->
<div class="pj-modal-actions pj-modal-actions-top">
<!-- 공유 — 이 업무의 퍼머링크(/project/t/{id})를 클립보드에 복사.
받은 사람이 열면 로그인 후 이 업무 팝업이 바로 뜬다(멤버만). -->
<button type="button" class="pj-btn pj-btn-share" id="pj-share-task" hidden title="이 작업 링크 복사">
<span class="material-symbols-outlined">link</span> 공유
</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>
<!-- 패널 접기 — 아사나처럼 오른쪽 끝의 →| 아이콘으로도 닫을 수 있다. -->
<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" />
<!-- 하위 업무를 열었을 때만 — 아사나처럼 제목 위에 상위 업무 경로. 누르면 상위 업무로. -->
<button type="button" class="pj-t-parent" id="pj-t-parent" hidden title="상위 작업 열기">
<span class="material-symbols-outlined">subdirectory_arrow_left</span>
<span class="pj-t-parent-title" id="pj-t-parent-title"></span>
</button>
<textarea id="pj-t-title" class="pj-t-title-input" rows="1" placeholder="작업 제목"></textarea>
<!-- 다른 프로젝트에서 연결돼 온 작업을 원 소속 권한 없이 열었을 때 — 보기만 된다(서버도 변경 거절). -->
<div class="pj-readonly-note" id="pj-t-readonly" hidden>
<span class="material-symbols-outlined">visibility</span>
<span>다른 프로젝트(<b id="pj-t-readonly-home"></b>)에서 연결된 작업이라 읽기만 할 수 있습니다. 변경은 원 소속 프로젝트 멤버만 할 수 있습니다.</span>
</div>
<div class="pj-modal-body">
<div class="pj-modal-col-main">
<!-- 메타 정보 — 아사나처럼 "라벨(좌) + 아이콘/값(우)" 목록형 한 줄씩. -->
<div class="pj-meta-list">
<!-- 담당자 · 세션 · 우선순위 · 마감일 — 한 줄에 넷을 나란히(칸 사이 세로선).
칸 안 아이콘은 빼고 라벨 글자만 둔다. 담당자 칸은 이름 길이만큼만(최대
150px), 남는 폭은 세션 칸이 쓴다. 마감일은 "마감일" 라벨 + 달력 아이콘
버튼 — 날짜가 있으면 아이콘 옆에 "09/25(목)" 처럼 짧게. 누르면 브라우저 달력이 뜬다
(진짜 값은 숨긴 #pj-t-due 가 들고 있다). 패널이 좁으면 2×2 로 접힌다. -->
<div class="pj-meta-row2 pj-meta-row-multi">
<div class="pj-meta-cell pj-meta-cell-assignee">
<span class="pj-meta-cell-label">담당자</span>
<select id="pj-t-assignee">
<option value="">없음</option>
{% for m in members %}
{% set nm = m.user_email.split('@')[0] %}
<option value="{{ m.user_email }}" data-name="{{ nm[:1]|upper }}{{ nm[1:] }}">
{{ nm[:1]|upper }}{{ nm[1:] }}
</option>
{% endfor %}
</select>
</div>
<div class="pj-meta-cell pj-meta-cell-stage">
<span class="pj-meta-cell-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-cell pj-meta-cell-priority">
<span class="pj-meta-cell-label">우선순위</span>
<select id="pj-t-priority">
<option value="low">낮음</option>
<option value="normal" selected>보통</option>
<option value="high">높음</option>
</select>
</div>
<div class="pj-meta-cell pj-meta-cell-due">
<span class="pj-meta-cell-label">마감일</span>
<button type="button" class="pj-due-btn" id="pj-t-due-btn" title="마감일 지정">
<span class="material-symbols-outlined">calendar_month</span>
<span class="pj-due-text" id="pj-t-due-text"></span>
</button>
<input type="date" id="pj-t-due" class="pj-due-native" tabindex="-1" aria-label="마감일" />
</div>
</div>
<!-- 팔로워(아사나의 협업자) — 완료·댓글 알림을 받는 사람. 만든 사람·담당자·
댓글 단 사람·@태그된 사람은 자동으로 들어온다. 저장 버튼과 무관하게 즉시 반영.
기존 업무에서만, 008 마이그레이션이 있어야 보인다. -->
<!-- 협업자 — 담당자 칸과 같은 모양(라벨 + 아이콘·이름). 없으면 점선 원 "협업자 없음". -->
<div class="pj-meta-row2 pj-followers-row" id="pj-followers-row" hidden>
<div class="pj-meta-cell pj-meta-cell-followers">
<span class="pj-meta-cell-label">협업자</span>
<span class="pj-follower-chips" id="pj-follower-chips"></span>
<button type="button" class="pj-follower-add" id="pj-follower-add" title="협업자 추가">+</button>
</div>
<button type="button" class="pj-follow-toggle" id="pj-follow-toggle">협업자로 참여</button>
</div>
<!-- 프로젝트 연결 — 협업자 아래에서 목록·선택·추가를 한 줄로 표시. -->
<div class="pj-meta-row2 pj-projects-row" id="pj-links-block" hidden>
<span class="pj-meta-cell-label pj-projects-label">
<span class="material-symbols-outlined pj-gicon pj-gicon-sm" aria-hidden="true">link</span> 프로젝트
</span>
<div class="pj-link-chips" id="pj-link-chips"></div>
<div class="pj-link-form" id="pj-link-form">
<select id="pj-link-project" aria-label="연결할 프로젝트"><option value="">프로젝트 선택…</option></select>
<select id="pj-link-stage" aria-label="연결할 섹션"><option value="">섹션 선택…</option></select>
<button type="button" class="pj-btn pj-btn-primary" id="pj-link-save">다른 프로젝트에 추가</button>
</div>
</div>
</div>
</div>
<!-- 설명 — 메타 아래, 팝업 너비 전체를 쓰는 줄. -->
<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>
{# 서식 도구 — 모든 버튼을 같은 아이콘 글꼴(Material Symbols)·같은 크기로 그려
한 줄에 딱 맞춰 선다(예전엔 글자·이모지가 섞여 높이가 들쭉날쭉했다). #}
<div class="pj-desc-fmtbar" id="pj-desc-fmtbar">
<button type="button" class="pj-desc-fmtbtn" data-cmd="bold" title="굵게 (Ctrl+B)"><span class="material-symbols-outlined">format_bold</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="italic" title="기울임 (Ctrl+I)"><span class="material-symbols-outlined">format_italic</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="underline" title="밑줄 (Ctrl+U)"><span class="material-symbols-outlined">format_underlined</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="strikeThrough" title="취소선 (Ctrl+Shift+X)"><span class="material-symbols-outlined">format_strikethrough</span></button>
<span class="pj-desc-fmtsep"></span>
<button type="button" class="pj-desc-fmtbtn" data-cmd="insertUnorderedList" title="글머리 기호 목록"><span class="material-symbols-outlined">format_list_bulleted</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="insertOrderedList" title="번호 매기기 목록"><span class="material-symbols-outlined">format_list_numbered</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="insertCheckbox" title="체크박스 넣기"><span class="material-symbols-outlined">check_box</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="formatBlock" data-arg="blockquote" title="인용구"><span class="material-symbols-outlined">format_quote</span></button>
<span class="pj-desc-fmtsep"></span>
<button type="button" class="pj-desc-fmtbtn" data-cmd="createLink" title="링크 삽입"><span class="material-symbols-outlined">link</span></button>
<button type="button" class="pj-desc-fmtbtn" data-cmd="removeFormat" title="서식 지우기"><span class="material-symbols-outlined">format_clear</span></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>
<!-- 하위 업무 — 설명 바로 아래 줄에서 팝업 너비 전체를 쓴다.
기존 업무 편집 시에만. -->
<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="하위 작업 제목…" autocomplete="off" />
<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-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>
<!-- 댓글(활동) — 팝업 너비 전체를 쓰는 맨 아래 줄. 길어지면 자체
스크롤 없이 팝업 전체(.pj-modal-body)와 함께 늘어난다.
입력칸은 여기 없고 아래 #pj-comment-dock(창 하단 고정)에 있다.
기존 업무 편집 시에만. -->
<div class="pj-task-extra pj-comment-full" 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>
</div>
<!-- 댓글 입력칸 — 아사나처럼 작업 창 맨 아래에 항상 고정. 스크롤 영역(.pj-modal-body)
바깥이라 끝까지 내려도 마지막 내용은 이 칸 바로 위에서 멈추고 가리지 않는다. -->
<div class="pj-comment-dock" id="pj-comment-dock" hidden>
<div class="pj-comment-form">
<textarea id="pj-comment-input" class="pj-composer-ta" rows="1" placeholder="댓글을 추가하거나 @로 멤버를 태그하세요 (Shift+Enter 줄바꿈)" autocomplete="off"></textarea>
<button type="button" class="pj-btn pj-btn-primary" id="pj-comment-send">등록</button>
</div>
</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>
<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>
<textarea id="pj-cm-input" class="pj-composer-ta" rows="1" placeholder="댓글 입력… (Shift+Enter 줄바꿈, 이미지는 붙여넣기 가능)" autocomplete="off"></textarea>
<button type="button" class="pj-btn pj-btn-primary" id="pj-cm-send">전송</button>
</div>
</div>
</div>
{% include "project/_member_tasks_modal.html" %}
<script>
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 }},
"holidays": {{ (holidays or {}) | tojson }},
"today": {{ today | tojson }}
}
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20261007i" defer></script>
{% endblock %}