feat(project): 완료 프로젝트를 "완료 프로젝트" 별도 섹션으로 다시 분류
같은 그리드 안에서 끝으로만 보내던 것을 되돌려, 진행중/완료를 다시 분리된 섹션(그리드)으로 나눔. 완료 체크 시 카드가 "완료 프로젝트" 섹션으로 옮겨지고(반투명은 기존 .is-done 유지), 해제하면 "진행중인 프로젝트"로 복귀 — 각 섹션 안에서는 sort_order 기준 정렬 유지. Co-Authored-By: Claude Sonnet 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=20260918b" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260918c" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -45,5 +45,5 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<script src="/static/project.js?v=20260918b" defer></script>
|
||||
<script src="/static/project.js?v=20260918c" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260918b" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260918c" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -125,19 +125,26 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if not home_projects %}
|
||||
{% if not active_projects and not done_projects %}
|
||||
<div class="pj-empty">
|
||||
아직 프로젝트가 없습니다. 상단의 <b>새 프로젝트</b> 버튼으로 만들어 보세요.
|
||||
</div>
|
||||
{% elif not active_projects %}
|
||||
<div class="pj-empty pj-empty-sm">진행중인 프로젝트가 없습니다.</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- 완료 프로젝트는 별도 섹션이 아니라 같은 그리드 안에서 반투명 +
|
||||
맨 끝으로만(세션 완료 처리와 같은 원칙). 서버가 이미 정렬해서
|
||||
내려주고(완료 여부로만 안정 정렬), 완료 토글 시 JS가 같은
|
||||
기준으로 카드를 다시 배치한다(resortProjectGrid). -->
|
||||
<div class="pj-project-grid" id="pj-project-grid">
|
||||
{% for p in home_projects %}{{ project_card(p) }}{% endfor %}
|
||||
{% for p in active_projects %}{{ project_card(p) }}{% endfor %}
|
||||
</div>
|
||||
|
||||
{% if done_projects %}
|
||||
<div class="pj-section-head pj-section-head-done">
|
||||
<h2>완료 프로젝트</h2>
|
||||
</div>
|
||||
<div class="pj-project-grid" id="pj-project-grid-done">
|
||||
{% for p in done_projects %}{{ project_card(p) }}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<!-- 내 업무 -->
|
||||
@@ -421,5 +428,5 @@
|
||||
window.PJ_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772"] | tojson }};
|
||||
window.PJ_STAGE_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772","#e8398a","#a15c43"] | tojson }};
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260918b" defer></script>
|
||||
<script src="/static/project.js?v=20260918c" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260918b" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260918c" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -544,5 +544,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260918b" defer></script>
|
||||
<script src="/static/project.js?v=20260918c" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user