f36f7d3ad4
- 협업자 = 담당자 외의 멤버: add_followers 가 담당자를 거르고, 담당자 지정 시 같은 트랜잭션에서 협업자에서 뺌, 담당자 협업자 추가는 400 - 마이그레이션 028: 이미 겹친 task_followers 행 정리(스키마 변경 없음, 멱등) - 업무 창 세부 업무 추가 칸: 담당자·협업자·마감일을 동그라미 아이콘 버튼으로, 제목 칸을 넓게 - 내 업무 화면: 줄 클릭 시 화면 이동 없이 오른쪽 업무 창(iframe), 닫으면 목록 다시 받기 - 대시보드 "미완료 업무 합계(섹션별)" 카드 삭제 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
3.7 KiB
HTML
71 lines
3.7 KiB
HTML
{% extends "erp_base.html" %}
|
|
|
|
{% block head_extra %}
|
|
{# 프로젝트 화면 부품(설명 편집기·날짜 팝업·멤버 고르기)을 그대로 쓴다 — project.js 는 PJ_LIB_ONLY 로 부품만 #}
|
|
<link rel="stylesheet" href="/static/project.css?v=20261013d" />
|
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
|
<script>window.PJ_LIB_ONLY = true; window.PJ_HOLIDAYS = {{ (pj_kr_holidays or {}) | tojson }};</script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if not enabled %}
|
|
<div class="ntc-card">
|
|
<h2>긴급 공지 준비 필요</h2>
|
|
<p>project_db 마이그레이션 024(<code>scripts/sql/project_db_024_urgent_notices.sql</code>)를 적용하면 사용할 수 있습니다.</p>
|
|
</div>
|
|
{% else %}
|
|
<div class="ntc-wrap" id="ntc-root">
|
|
<section class="ntc-card" aria-labelledby="ntc-form-title">
|
|
<h2 id="ntc-form-title">새 긴급 공지</h2>
|
|
<input type="hidden" id="ntc-id" value="" />
|
|
<label class="ntc-field">제목
|
|
<input type="text" id="ntc-title" maxlength="200" placeholder="예: 오늘 18시 서버 점검" autocomplete="off" />
|
|
</label>
|
|
{# 내용 — 작업 설명란과 같은 편집기(서식 도구 전체·이미지 붙여넣기/버튼·크기 조절·링크·체크리스트) #}
|
|
<div class="ntc-field pj-desc-block ntc-desc">
|
|
<div class="pj-desc-toolbar"><span>내용</span><span class="pj-muted-sm" id="ntc-hint"></span></div>
|
|
{% with fmtbar_id = "ntc-fmtbar", img_input_id = "ntc-img-input" %}{% include "project/_desc_fmtbar.html" %}{% endwith %}
|
|
<div class="pj-desc-wrap">
|
|
<div class="pj-desc-editor" id="ntc-body" contenteditable="true" role="textbox" aria-multiline="true" aria-label="공지 내용"
|
|
data-placeholder="공지 내용을 쓰세요… (이미지는 붙여넣기 또는 위 버튼으로 추가)"></div>
|
|
</div>
|
|
</div>
|
|
{# 띄울 날짜 — 프로젝트와 같은 날짜 팝업(공휴일·오늘·지우기), 시각은 옆 칸. 둘 다 비우면 바로 #}
|
|
<div class="ntc-field">띄울 시각 <small class="ntc-sub">한국시간 · 날짜를 비우면 바로</small>
|
|
<div class="ntc-when">
|
|
<input type="date" id="ntc-date" />
|
|
<input type="time" id="ntc-time" class="ntc-time" step="300" aria-label="띄울 시각" />
|
|
</div>
|
|
</div>
|
|
<div class="ntc-field">받는 사람
|
|
<div class="ntc-targets">
|
|
<div class="ntc-to">
|
|
<label><input type="radio" name="ntc-to" value="all" checked /> 전체(로그인하는 모든 사람)</label>
|
|
<label><input type="radio" name="ntc-to" value="some" /> 고른 사람만</label>
|
|
</div>
|
|
{# 프로젝트 멤버 고르기와 같은 모양 — 아이콘 + 이름 + 체크 #}
|
|
<div class="pj-member-picker ntc-people" id="ntc-people" hidden></div>
|
|
</div>
|
|
</div>
|
|
<label class="ntc-field ntc-inline" id="ntc-reshow-row" hidden>
|
|
<input type="checkbox" id="ntc-reshow" /> 이미 [확인]한 사람에게도 다시 띄우기
|
|
</label>
|
|
<div class="ntc-actions">
|
|
<button type="button" class="pj-btn" id="ntc-reset">새로 쓰기</button>
|
|
<button type="button" class="pj-btn" id="ntc-preview">미리 보기</button>
|
|
<button type="button" class="pj-btn pj-btn-primary" id="ntc-save">공지 만들기</button>
|
|
</div>
|
|
<p class="ntc-msg" id="ntc-msg" role="alert" hidden></p>
|
|
</section>
|
|
|
|
<section class="ntc-card" aria-labelledby="ntc-list-title">
|
|
<h2 id="ntc-list-title">공지 목록</h2>
|
|
<div class="ntc-list" id="ntc-list">불러오는 중…</div>
|
|
</section>
|
|
</div>
|
|
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
|
|
<script src="/static/project.js?v=20261013d" defer></script>
|
|
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
|
|
{% endif %}
|
|
{% endblock %}
|