Files
dbx-main/app/modules/project/templates/project/trash.html
T
king 5b0c5905b2 feat(project): 설명 체크박스를 글머리 목록처럼(체크리스트) + 작업 창 스크롤바 정리
- ☑ = 체크리스트 켜기/끄기: 지금 줄(고른 줄들)을 <ul class="pj-checklist"> 로,
  줄마다 체크박스. Enter 로 새 줄에도 체크박스, 빈 줄 Enter 는 목록 끝.
  체크리스트 안에서 글머리·번호 버튼은 체크박스를 빼고 그 목록으로.
  체크한 줄은 흐리게 + 취소선
- 서버 정리기: ul 의 class 는 pj-checklist 하나만 허용(태그별 허용 class 표)
- 작업 창 스크롤 영역: 가로 스크롤 제거(설명란 음수 여백 때문에 생기던 것),
  오른쪽 여백까지 넓혀 세로 스크롤바를 창 오른쪽 끝으로
- 도움말 8장 체크리스트 설명 갱신, 정적 파일 버전 20260926q

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 14:32:58 +09:00

75 lines
3.1 KiB
HTML

{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260926q" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %}
{% block content %}
{# 휴지통 — 관리자 전용. 지운 업무(하위 업무·댓글·팔로워·첨부 포함)를 3개월
보관하고, [복구] 로 원래 id 그대로 되살린다(project_db 010). #}
<div class="pj-wrap pj-inbox-view pj-trash-view">
<div class="pj-layout">
{% with current_pid = 0, side_active = "trash" %}{% include "project/_side.html" %}{% endwith %}
<section class="pj-main">
<div class="pj-section-head">
<h2>휴지통</h2>
<span class="pj-trash-note">삭제한 작업은 3개월 동안 보관된 뒤 영구 삭제됩니다. 복구는 관리자만 할 수 있습니다.</span>
</div>
<div class="pj-view pj-inbox-pane">
{% if not trash_enabled %}
<div class="pj-empty">
휴지통이 아직 준비되지 않았습니다(DB 마이그레이션 010 필요). 지금은 삭제하면 바로 영구 삭제됩니다.
</div>
{% elif not items %}
<div class="pj-empty">휴지통이 비어 있습니다.</div>
{% else %}
<table class="pj-table pj-trash-table" id="pj-trash-table">
<thead>
<tr>
<th>작업</th>
<th>프로젝트</th>
<th>포함</th>
<th>삭제한 사람</th>
<th>삭제일</th>
<th>남은 보관</th>
<th></th>
</tr>
</thead>
<tbody>
{% for it in items %}
<tr data-id="{{ it.id }}">
<td class="pj-trash-title">{{ it.title }}</td>
<td>{{ it.project_name or '-' }}</td>
<td class="pj-trash-meta">
{% if it.task_count > 1 %}하위 작업 {{ it.task_count - 1 }}{% endif %}
{% if it.comment_count %}{% if it.task_count > 1 %} · {% endif %}댓글 {{ it.comment_count }}{% endif %}
{% if it.attachment_count %} · 첨부 파일 {{ it.attachment_count }}{% endif %}
{% if it.task_count <= 1 and not it.comment_count and not it.attachment_count %}-{% endif %}
</td>
<td>{{ it.deleted_by_id or '-' }}</td>
<td>{{ it.deleted_label }}</td>
<td>{% if it.days_left is not none %}{{ it.days_left }}일{% else %}-{% endif %}</td>
<td class="pj-trash-act">
<button type="button" class="pj-btn pj-btn-primary pj-trash-restore"
data-id="{{ it.id }}" data-title="{{ it.title }}" data-count="{{ it.task_count }}">복구</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</section>
</div>
</div>
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260926q" defer></script>
{% endblock %}