feat(project): 좌측 프로젝트 목록을 모든 화면에서 동일하게(순서변경·수정·삭제)
수신함·내 업무·휴지통 화면의 프로젝트 목록에도 프로젝트 화면과 같은 드래그 순서 변경(⣿)·✎ 수정·× 삭제·우클릭 메뉴를 붙인다. - 트리 동작을 initProject 에서 공용 initSideTree 로 분리 - 새 프로젝트/수정 모달을 _side_modals.html 로 모아 네 화면이 include - 수신함·휴지통에도 color_palette 전달, 정적 파일 버전 20260925a 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=20260924j" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260925a" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -66,25 +66,7 @@
|
||||
</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>
|
||||
<label>마감일<input type="date" id="pj-f-due" /></label>
|
||||
<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>
|
||||
{% include "project/_side_modals.html" %}
|
||||
|
||||
<!-- 댓글만 보는 채팅형 팝업 — 업무 행의 말풍선 아이콘 더블클릭 -->
|
||||
<div class="pj-modal" id="pj-modal-comments" hidden>
|
||||
@@ -108,9 +90,6 @@
|
||||
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script>
|
||||
window.PJ_COLORS = {{ color_palette | tojson }};
|
||||
</script>
|
||||
<script id="pj-mytasks-data" type="application/json">
|
||||
{
|
||||
"tasks": {{ my_tasks | tojson }},
|
||||
@@ -119,5 +98,5 @@
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260924j" defer></script>
|
||||
<script src="/static/project.js?v=20260925a" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user