122 lines
7.4 KiB
HTML
122 lines
7.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
|
<div class="modal-header bg-dark">
|
|
<h5 class="modal-title text-white" id="ciWorkEditModalLabel" th:text="${ciWork.ciwKey eq null?'방첩공작 등록':'방첩공작 수정'}"></h5>
|
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body" id="ciWorkEditBody">
|
|
<form action="#" method="post" id="ciWorkEditForm">
|
|
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
|
<input type="hidden" name="ciwKey" th:value="${ciWork.ciwKey}">
|
|
<input type="hidden" name="wrtOrgan" th:value="${ciWork.wrtOrgan}">
|
|
<input type="hidden" name="wrtPart" th:value="${ciWork.wrtPart}">
|
|
<input type="hidden" name="wrtUserSeq" th:value="${ciWork.wrtUserSeq}">
|
|
<input type="hidden" name="wrtUserGrd" th:value="${ciWork.wrtUserGrd}">
|
|
<input type="hidden" name="wrtUserNm" th:value="${ciWork.wrtUserNm}">
|
|
<input type="hidden" name="status" id="status" th:value="${ciWork.status}">
|
|
<div class="row mb-1">
|
|
<label for="wrtUserNm" class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</label>
|
|
<div class="col-sm-3">
|
|
<th:block th:if="${ciWork.wrtUserGrd eq null}">
|
|
<input type="text" class="form-control form-control-sm" id="wrtUserNm" th:value="${ciWork.wrtUserNm}" readonly>
|
|
</th:block>
|
|
<th:block th:unless="${ciWork.wrtUserGrd eq null}">
|
|
<th:block th:each="code:${session.commonCode.get('JT')}">
|
|
<th:block th:if="${code.itemCd eq ciWork.wrtUserGrd}">
|
|
<input type="text" class="form-control form-control-sm" id="wrtUserNm" th:value="|${code.itemValue} ${ciWork.wrtUserNm}|" readonly>
|
|
</th:block>
|
|
</th:block>
|
|
</th:block>
|
|
</div>
|
|
<label for="wrtDt" class="col-sm-1 col-form-label col-form-label-sm text-center">작성일시</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm" id="wrtDt" name="wrtDt" th:value="${#temporals.format(ciWork.wrtDt, 'yyyy-MM-dd HH:mm')}" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="title" class="col-sm-1 col-form-label col-form-label-sm text-center">공작명</label>
|
|
<div class="col-sm-11">
|
|
<input type="text" class="form-control form-control-sm" id="title" name="title" th:value="${ciWork.title}">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="workStartDate" class="col-sm-1 col-form-label col-form-label-sm text-center">착수일</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm dateSelector" id="workStartDate" name="workStartDate" th:value="${#temporals.format(ciWork.workStartDate, 'yyyy-MM-dd')}" readonly>
|
|
</div>
|
|
<label for="workPlanDate" class="col-sm-1 col-form-label col-form-label-sm text-center">예정일</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm dateSelector" id="workPlanDate" name="workPlanDate" th:value="${#temporals.format(ciWork.workPlanDate, 'yyyy-MM-dd')}" readonly>
|
|
</div>
|
|
<label for="workEndDate" class="col-sm-1 col-form-label col-form-label-sm text-center">종결일</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm dateSelector" id="workEndDate" name="workEndDate" th:value="${#temporals.format(ciWork.workEndDate, 'yyyy-MM-dd')}" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="workRating" class="col-sm-1 col-form-label col-form-label-sm text-center">등급</label>
|
|
<div class="col-sm-3">
|
|
<select class="form-select form-select-sm" id="workRating" name="workRating">
|
|
<option value="">선택해주세요.</option>
|
|
<th:block th:each="code:${ciwrCodeList}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq ciWork.workRating}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<label for="reRatingDate1" class="col-sm-1 col-form-label col-form-label-sm text-center">1차재평가</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm dateSelector" id="reRatingDate1" name="reRatingDate1" th:value="${#temporals.format(ciWork.reRatingDate1, 'yyyy-MM-dd')}" readonly>
|
|
</div>
|
|
<label for="reRatingDate2" class="col-sm-1 col-form-label col-form-label-sm text-center">2차재평가</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control form-control-sm dateSelector" id="reRatingDate2" name="reRatingDate2" th:value="${#temporals.format(ciWork.reRatingDate2, 'yyyy-MM-dd')}" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1 justify-content-center">
|
|
<label for="summaryInfo" class="col-sm-1 col-form-label col-form-label-sm text-center">사건개요</label>
|
|
<div class="col-sm-11">
|
|
<textarea class="form-control form-control-sm" id="summaryInfo" name="summaryInfo" th:utext="${ciWork.summaryInfo}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1 justify-content-center">
|
|
<label for="content" class="col-sm-1 col-form-label col-form-label-sm text-center">주요내용</label>
|
|
<div class="col-sm-11">
|
|
<div id="editor"></div>
|
|
<textarea class="d-none" id="content" th:utext="${ciWork.content}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="hashTags" class="col-sm-1 col-form-label col-form-label-sm text-center">해시태그</label>
|
|
<div class="col-sm-11">
|
|
<input type="text" class="form-control form-control-sm" id="hashTags" name="hashTags" th:value="${ciWork.hashTags}"
|
|
placeholder="띄어쓰기로 각 태그를 구분합니다. 한 태그 내에서는 띄어쓰기 없이 입력해주세요. ex)태그1 태그2">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="fileInputer" class="col-sm-1 col-form-label col-form-label-sm text-center">첨부파일</label>
|
|
<div class="col-sm-11" style="min-height: 70px;">
|
|
<div class="w-100 h-100 border border-info rounded text-center" id="uploadDiv">
|
|
<th:block th:if="${#arrays.isEmpty(ciWork.fileList)}">
|
|
<br>클릭 & 드레그로 파일을 업로드 해주세요.
|
|
</th:block>
|
|
<th:block th:unless="${#arrays.isEmpty(ciWork.fileList)}">
|
|
<div class='row-col-6' th:each="file:${ciWork.fileList}">
|
|
<span th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn} ${file.fileSize}|"></span>
|
|
<a href='#' class='uploadedFileDelete text-danger text-decoration-none'>삭제</a>
|
|
</div>
|
|
</th:block>
|
|
</div>
|
|
</div>
|
|
<input type="file" class="d-none" id="fileInputer" multiple>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer bg-light">
|
|
<th:block th:if="${ciWork.ciwKey ne null and accessAuth eq 'ACC003'}">
|
|
<button type="button" class="btn btn-danger" id="deleteCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">삭제</button>
|
|
</th:block>
|
|
<button type="button" class="btn btn-warning" id="saveTempBtn" data-status="DST001">임시저장</button>
|
|
<button type="button" class="btn btn-primary" id="saveCiWorkBtn" data-status="DST007">저장</button>
|
|
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
|
|
</div> |