94fac65238
- 프로젝트 화면(처음 여는 탭)·보드(카드 표지)는 서버 저장(project_db.project_options, 마이그레이션 029) → 수퍼관리자·Admin 이 바꾸면 모든 사용자에게 적용. 일반(폰트)은 그대로 이 브라우저(localStorage). - GET/PUT /project/api/options(쓰기는 Admin 이상, 보낸 키만, 029 미적용 503). 검사·기본값은 store.normalize/validate_project_options 한 곳. 프로젝트 화면은 data-default-view·data-board-cover 로 받음 (읽기 실패해도 기본값으로 열림). - 옵션 창: 열 때 서버 최신값 읽기(실패 시 시스템 칸 잠금·폰트만 저장), 바뀐 키만 PUT, 실패면 창 유지. 분류 제목 옆 적용 범위 배지(이 브라우저에만 / 모든 사용자에게). - 공용 말풍선: 모달 대화창(showModal) 안에서는 popover(top layer)로 띄워 대화창 뒤에 가려지지 않게. - 테스트: tests/test_project_options_api.py, jsdom 옵션 테스트 갱신. 도움말·문서·DEPLOYMENT(029) 갱신. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
75 lines
3.1 KiB
HTML
75 lines
3.1 KiB
HTML
{% extends "erp_base.html" %}
|
|
|
|
{% block head_extra %}
|
|
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
|
{% endblock %}
|
|
|
|
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{# 휴지통 — Pro user 이상. 지운 업무(세부 업무·댓글·팔로워·첨부 포함)를 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개월 동안 보관된 뒤 영구 삭제됩니다. 복구는 Pro user 이상만 할 수 있습니다.</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=20261016d" defer></script>
|
|
{% endblock %}
|