Files
dbx-main/app/modules/project/templates/project/mytasks.html
T
king 4ce3ac10a5 fix(project): 업무 편집 상단 여백/버튼 바 압축
- 작은 안내줄([프로젝트/세션]의 업무 편집)을 없애고 큰 제목 입력칸만 남겨
  공간을 확보(여백도 14px -> 8px)
- 상단 버튼 바 높이를 34px -> 24px로 줄이고 버튼을 세로 가운데 정렬
- 줄어든 높이에서 버튼이 안 잘리도록 overflow-y: hidden -> visible,
  버튼/아이콘 크기도 같이 축소
- 더 이상 쓰지 않는 안내줄 관련 JS/CSS 정리

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 17:18:41 +09:00

105 lines
4.1 KiB
HTML

{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260922n" />
<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, side_active = "mytasks" %}{% 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=20260922n" defer></script>
{% endblock %}