<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">

<div class="modal-header">
	<h5 class="modal-title" id="menuEditModalLabel" th:text="|${vulnInfo.vulnNm} 관리카드|"></h5>
	<button type="button" class="btn-close" data-bs-dismiss="modal"
		aria-label="Close"></button>
</div>
<div class="modal-body">
	<div class="card">
		<div class="card-body">
			<div class="row">
				<table class="table table-striped" id="categoryTable">
					<thead>
						<tr>
							<th>취약지명</th>
							<th>취약등급</th>
							<th>작성자</th>
							<th>작성일/수정일</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td id="goEdit" th:data-vulnKey="${vulnInfo.vulnKey}" style="color: blue; cursor:pointer;" th:text="${vulnInfo.vulnNm}"></td>
							<td th:text="${vulnInfo.vulnType}"></td>
							<td th:text="${vulnInfo.wrtNm}"></td>
							<td th:text="${#temporals.format(vulnInfo.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>

						</tr>
					</tbody>
				</table>
			</div>
			<div class="row mb-3">
		      <label for="ogCd" class="col-sm-2 col-form-label text-center">비고</label>
	            <div class="col-sm-10">
	                  <input type="text" class="form-control" th:value="${vulnInfo.description}" disabled>
	            </div>
	    	</div>
			<div class="row mb-3">
		      <label for="fileInputer" class="col-sm-2 col-form-label text-center">업로드 자료</label>
		      <div class="col-sm-10" style="min-height: 70px;">
		        <div class="w-100 h-100 border border-info rounded text-center">
		        <th:block th:if="${#arrays.isEmpty(vulnInfo.fileList)}">
		        	업로드된 파일이 없습니다.
		        </th:block>
		        <th:block th:unless="${#arrays.isEmpty(vulnInfo.fileList)}">
		            <div class='row-col-6' th:each="infoFile:${vulnInfo.fileList}">
		              <a href='#' id="fileDown" th:data-fileseq="${infoFile.fileSeq}" th:data-vulnKey="${infoFile.vulnKey}" th:text="|${infoFile.origNm}.${infoFile.fileExtn} ${infoFile.fileSize}|"></a>
		            </div>
		          </th:block>
		        </div>
		      </div>
	    	</div>
		</div>
	</div>
</div>
<div class="modal-footer justify-content-between">
	<div class="col-auto">
		<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
	</div>
</div>
</html>