111 lines
6.2 KiB
HTML
111 lines
6.2 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="affairEditModalLabel" th:text="${md.mdKey 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="affairEditBody">
|
|
<form action="#" method="post" id="designationEditForm">
|
|
<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="mdKey" th:value="${md.mdKey}">
|
|
<input type="hidden" name="wrtOrgan" th:value="${md.wrtOrgan}">
|
|
<input type="hidden" name="wrtPart" th:value="${md.wrtPart}">
|
|
<input type="hidden" name="wrtUserSeq" th:value="${md.wrtUserSeq}">
|
|
<input type="hidden" name="wrtUserGrd" th:value="${md.wrtUserGrd}">
|
|
<input type="hidden" name="wrtUserNm" th:value="${md.wrtUserNm}">
|
|
<input type="hidden" name="wrtDt" id="wrtDt" th:value="${#temporals.format(md.wrtDt, 'yyyy-MM-dd HH:mm')}">
|
|
<div class="row mb-1">
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">*대상지정일</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdDt" name="mdDt" th:value="${md.mdDt}" readonly>
|
|
</div>
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" placeholder="작성자 자동입력" readonly>
|
|
</div>
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성일</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" placeholder="작성일 자동입력" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label 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="mdTitle" name="mdTitle" th:value="${md.mdTitle}">
|
|
</div>
|
|
</div>
|
|
<div class="row"><h6 class="text-start">■ 모니터링 대상자</h6></div>
|
|
<div class="row mb-1">
|
|
<label for="affairType1" class="col-sm-1 col-form-label col-form-label-sm text-center">*성명</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdName" name="mdName" th:value="${md.mdName}">
|
|
</div>
|
|
<label for="affairType2" class="col-sm-1 col-form-label col-form-label-sm text-center">*생년월일</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdBirth" name="mdBirth" th:value="${md.mdBirth}" readonly>
|
|
</div>
|
|
<label for="affairType3" class="col-sm-1 col-form-label col-form-label-sm text-center">국적</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdNationality" name="mdNationality" th:value="${md.mdNationality}">
|
|
</div>
|
|
<label for="affairType4" class="col-sm-1 col-form-label col-form-label-sm text-center">주소지</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdAddress" name="mdAddress" th:value="${md.mdAddress}">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="affairType1" class="col-sm-1 col-form-label col-form-label-sm text-center">소속/계급<br>(직위)</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdRank" name="mdRank" th:value="${md.mdRank}">
|
|
</div>
|
|
<label for="affairType2" class="col-sm-1 col-form-label col-form-label-sm text-center">주요경력</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control form-control-sm" id="mdCareer" name="mdCareer" th:value="${md.mdCareer}">
|
|
</div>
|
|
<label for="affairType3" class="col-sm-1 col-form-label col-form-label-sm text-center">기타사항</label>
|
|
<div class="col-sm-5">
|
|
<input type="text" class="form-control form-control-sm" id="mdEtc" name="mdEtc" th:value="${md.mdEtc}">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="hashTags" class="col-sm-1 col-form-label col-form-label-sm text-center">*대상지정<br>사유</label>
|
|
<div class="col-sm-11">
|
|
<textarea id="mdReason" name="mdReason" rows="5" cols="108" th:utext="${md.mdReason}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="editor" class="col-sm-1 col-form-label col-form-label-sm text-center">모니터링<br>추진계획</label>
|
|
<div class="col-sm-11">
|
|
<div id="editor"></div>
|
|
<textarea id="content" class="d-none" th:utext="${md.mdPlan}"></textarea>
|
|
</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(md.fileList)}">
|
|
<br>파일을 업로드 해주세요.
|
|
</th:block>
|
|
<th:block th:unless="${#arrays.isEmpty(md.fileList)}">
|
|
<div class='row-col-6' th:each="file:${md.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 justify-content-between bg-light">
|
|
<div class="col-auto">
|
|
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
|
|
</div>
|
|
<div class="col-auto">
|
|
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>
|
|
<button type="button" class="btn btn-primary" id="saveBtn">저장</button>
|
|
</div>
|
|
</div> |