<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<div class="modal-header">
  <h5 class="modal-title" id="processResultAddModalLabel">불법조업 외국어선 처리현황 등록</h5>
  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="processResultAddBody">
  <form action="#" method="post" id="processResultEditForm">
    <input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
    <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="cdsKey">
    <input type="hidden" name="fbKey">
    <input type="hidden" name="prKey">
    <input type="hidden" name="wrtOrgan" th:value="${processResult.wrtOrgan}">
    <input type="hidden" name="wrtPart" th:value="${processResult.wrtPart}">
    <input type="hidden" name="wrtUserGrd" th:value="${processResult.wrtUserGrd}">
    <input type="hidden" name="wrtUserNm" th:value="${processResult.wrtUserNm}">
    <input type="hidden" name="wrtDt" th:value="${#temporals.format(processResult.wrtDt, 'yyyy-MM-dd HH:mm')}">
    <input type="hidden" id="saveYn" name="saveYn">
    <div class="mb-3 row">
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">사건번호</label>
      <div class="col-sm-2">
        <select class="form-select form-select-sm" name="caseNum" id="caseNum">
          <option value="">선택</option>
          <th:block th:each="crackdownStatus:${processResult.crackdownStatusList}">
            <option th:value="${crackdownStatus.cdsKey}" th:text="${crackdownStatus.caseNum}"></option>
          </th:block>
        </select>
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">피의자<br>(선박명)</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="boatNameKr" id="boatNameKr" readonly>
      </div>
    </div>
    <div class="mb-3 row">
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">선고법원</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="sentencingCourt" id="sentencingCourt">
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">선고내용</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="sentencingDetail" id="sentencingDetail">
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">집행내용</label>
      <div class="col-sm-2">
        <select class="form-select form-select-sm" name="executionDetail" id="executionDetail">
          <option value="">선택</option>
          <th:block th:each="commonCode:${session.commonCode.get('PR')}">
            <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
                    th:selected="${commonCode.itemCd eq processResult.executionDetail}"></option>
          </th:block>
          <option value="etc">직접입력</option>
        </select>
      </div>
    </div>
    <div class="mb-3 row">
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">환부일</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="returnDt" id="returnDt">
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">위탁시작일</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="consignmentStartDt" id="consignmentStartDt">
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">위탁종료일</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="consignmentEndDt" id="consignmentEndDt">
        <input type="hidden" class="form-control form-control-sm" name="warrantReqTakeTime">
      </div>
    </div>
    <div class="mb-3 row">
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">몰수확정일</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="confiscationDt" id="confiscationDt">
      </div>
      <label class="col-sm-1 col-form-label col-form-label-sm text-center">폐선일</label>
      <div class="col-sm-2">
        <input class="form-control form-control-sm" name="boatDisposalDt" id="boatDisposalDt">
      </div>
    </div>
  </form>
</div>
<div class="modal-footer">
  <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
  <!--<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>-->
  <button type="button" class="btn btn-primary" id="saveProcessResultBtn">저장</button>
</div>
</html>