<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
    <input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
    <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
    <div class="modal-header">
	  <h5 class="modal-title">수정이력</h5>
	  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
	</div>
    <div class="row mx-0">
      <div class="col-100 card text-center">
        <div class="card-body">
          <div class="row">
          </div>
          <div class="row justify-content-start">
            <div class="col-4">
              <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>
                      </tr>
                      </thead>
                      <tbody class="overflow-scroll">
                      <tr class="historyInfoTr" th:each="equInfo:${equList}">                    
                      <td><input type="checkbox" class="hisChk">
                      <input type="hidden" class="equKey" th:value="${equInfo.equKey}">
                      <input type="hidden" class="verNo" th:value="${equInfo.versionNo}" >
                      </td>
                      <td th:text="${equInfo.wrtNm}"></td>
                      <td th:text="${#temporals.format(equInfo.wrtDt, 'yyyy-MM-dd')}"></td>
                      </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-8" id="valueDiv">
            <div class="row mb-3">
		      <label for="cat1Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">관리처</label>
		      <div class="col-sm-6">
		        <input type="text" id="vSosok" readonly>
		      </div>
		    </div>
           <div class="row mb-3">
		      <label for="cat1Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">분류</label>
		      <div class="col-sm-6">
		        <input type="text" id="vEquType" readonly>
		      </div>
		    </div>
		    <div class="row mb-3">
		      <label for="cat2Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">세부분류</label>
		      <div class="col-sm-6">
		        <input type="text" id="vDetailType" readonly>
		      </div>
		    </div>
		    <div class="row mb-3">
		      <label for="cat3Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">취득연도</label>
		      <div class="col-sm-6">
		        <input type="text" id="vStoredYear" readonly>
		      </div>
		    </div>
		    <div class="row mb-3">
		      <label for="cat3Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">보유량</label>
		      <div class="col-sm-6">
		        <input type="text" id="vItemQty" readonly>
		      </div>
		    </div>
		     <div class="row mb-3">
		      <label for="cat2Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">상태</label>
		      <div class="col-sm-6">
		          <input type="text" id="vItemCondition" readonly>
		      </div>
		    </div>
		    <div class="row mb-3">
		      <label for="cat3Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">비고</label>
		      <div class="col-sm-6">
		        <input type="text" id="vNote" readonly>
		      </div>
		    </div>
		    <div class="row mb-3">
		      <label for="cat3Cd" class="col-sm-4 col-form-label col-form-label-sm text-center">장비사진</label>
		      <div class="col-sm-6">
		        <input type="text" id="vImgName" readonly>
		      </div>
		    </div>
            </div> 
          </div>
        </div>
        <div class="modal-footer justify-content-between">
		  <div class="col-auto">
		    <button type="button" class="btn btn-secondary" id="closeModal" data-bs-dismiss="modal">닫기</button>
		  </div>
		</div>
      </div>
    </div>
</html>