feat(project): 홈 화면 폐지 → 내 업무 화면 · 하위 업무 전체폭/완료 체크
- /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>
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260922c" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% 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 content %}
|
||||
{# 프로젝트 모듈의 첫 화면 = 내 업무. 예전 프로젝트 홈(카드 그리드)은 없앴다. #}
|
||||
<div class="pj-wrap pj-mytasks-view" data-me="{{ user.email }}"
|
||||
data-is-admin="{{ 'true' if is_admin else 'false' }}"
|
||||
data-is-super="{{ 'true' if user.is_super_admin else 'false' }}">
|
||||
<div class="pj-layout">
|
||||
{% with current_pid = 0 %}{% include "project/_side.html" %}{% endwith %}
|
||||
|
||||
<section class="pj-main">
|
||||
<div class="pj-toolbar">
|
||||
<div class="pj-view-tabs" id="pj-mt-filter">
|
||||
<button type="button" class="pj-tab is-active" data-filter="open">진행 중</button>
|
||||
<button type="button" class="pj-tab" data-filter="done">완료</button>
|
||||
<button type="button" class="pj-tab" data-filter="all">전체</button>
|
||||
</div>
|
||||
<div class="pj-title-wrap">
|
||||
<h1 class="pj-project-title">
|
||||
<span class="pj-project-title-pill" style="--pj-color: #7b68ee">내 업무</span>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="pj-mytasks-summary" id="pj-mytasks-summary"></div>
|
||||
</div>
|
||||
|
||||
<div class="pj-view pj-mytasks-pane">
|
||||
<table class="pj-table pj-mytasks-table" id="pj-mytasks-table">
|
||||
<thead></thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<div class="pj-empty" id="pj-mytasks-empty" hidden>표시할 업무가 없습니다.</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-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>
|
||||
|
||||
<script>
|
||||
window.PJ_COLORS = {{ color_palette | tojson }};
|
||||
</script>
|
||||
<script id="pj-mytasks-data" type="application/json">
|
||||
{
|
||||
"tasks": {{ my_tasks | tojson }},
|
||||
"priorityLabels": {{ priority_labels | tojson }},
|
||||
"avatars": {{ avatars | tojson }},
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260922c" defer></script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user