96 lines
5.2 KiB
HTML
96 lines
5.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="menuEditModalLabel">외사분실 실적 상세</h5>
|
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form action="#" method="post" id="partWorkUpdateFm">
|
|
<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="pwSeq" th:value="${pwInfo.pwSeq}">
|
|
<input type="hidden" id="mPiSeq" name="piSeq" th:value="${pwInfo.piSeq}">
|
|
<div class="row mb-1">
|
|
<label for="wrtUserNm" class="col-sm-2 col-form-label col-form-label-sm text-center">작성자</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control form-control-sm" id="wrtUserNm" th:value="|${pwInfo.wrtTitle} ${pwInfo.wrtNm}|" placeholder="작성자 자동입력" readonly>
|
|
</div>
|
|
<label for="wrtDt" class="col-sm-2 col-form-label col-form-label-sm text-center">최종수정일</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control form-control-sm" id="wrtDt" th:value="${#temporals.format(pwInfo.wrtDt, 'yyyy-MM-dd HH:mm')}" placeholder="자동입력" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="piSeq" class="col-sm-2 col-form-label col-form-label-sm text-center">터미널명</label>
|
|
<div class="col-sm-4">
|
|
<select class="form-select form-select-sm" id="piSeq" name="piSeq">
|
|
<option value="">선택</option>
|
|
<th:block th:each="terminal:${tnList}">
|
|
<option th:value="${terminal.pi_seq}" th:text="${terminal.terminal_nm}" th:selected="${pwInfo.piSeq eq terminal.pi_seq}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<label for="workDt" class="col-sm-2 col-form-label col-form-label-sm text-center">일시</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control form-control-sm" id="workDt" name="workDt" th:value="${pwInfo.workDt}" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1 justify-content-center">
|
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center">종류</label>
|
|
<div class="col-sm-10 ">
|
|
<th:block th:each="code:${session.commonCode.get('PWT')}">
|
|
<th:block th:if="${code.useChk eq 'T'}">
|
|
<input type="radio" th:id="|workType${code.itemCd}|" name="workType" th:value="${code.itemCd}" th:checked="${pwInfo.workType eq code.itemCd}">
|
|
<label th:for="|workType${code.itemCd}|" class="col-form-label bg-white" th:text="${code.itemValue}"></label>
|
|
</th:block>
|
|
</th:block>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1 justify-content-center">
|
|
<label for="editor" class="col-sm-2 col-form-label col-form-label-sm text-center">내용</label>
|
|
<div class="col-sm-10">
|
|
<div id="editor"></div>
|
|
<textarea class="d-none" id="content" th:text="${pwInfo.workInfo}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-1">
|
|
<label for="description" class="col-sm-2 col-form-label col-form-label-sm text-center">비고</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control form-control-sm" id="description" name="description" th:value="${pwInfo.description}">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="fileInputer" class="col-sm-2 col-form-label col-form-label-sm text-center">첨부파일</label>
|
|
<div class="col-sm-10" style="min-height: 70px;">
|
|
<div class="w-100 h-100 border border-info rounded text-center" id="uploadDiv">
|
|
<th:block th:if="${#arrays.isEmpty(pwInfo.fileList)}">
|
|
<br>파일을 업로드 해주세요.
|
|
</th:block>
|
|
<th:block th:unless="${#arrays.isEmpty(pwInfo.fileList)}">
|
|
<div class='row-col-6' th:each="infoFile:${pwInfo.fileList}">
|
|
<span th:data-fileseq="${infoFile.fileSeq}" th:text="|${infoFile.origNm}.${infoFile.fileExtn} ${infoFile.fileSize}|"></span>
|
|
<a href='#' class='fileDownPartWork text-decoration-none' th:data-fileSeq="${infoFile.fileSeq}" th:data-pwSeq="${infoFile.pwSeq}" th:data-piSeq="${infoFile.piSeq}">다운</a>
|
|
<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>
|
|
-->
|
|
<th:block th:if="${userSeq eq pwInfo.wrtUserSeq} or ${accessAuth eq 'ACC003'}">
|
|
<button type="button" class="btn btn-danger" id="deletePartWork">삭제</button>
|
|
</th:block>
|
|
</div>
|
|
<th:block th:if="${userSeq eq pwInfo.wrtUserSeq} or ${accessAuth eq 'ACC003'}"><!--작성자 관리자일 경우 수정 허용-->
|
|
<button type="button" class="btn btn-warning" id="updateBtn">수정</button>
|
|
</th:block>
|
|
</div>
|
|
</html> |