<!DOCTYPE html>
<html lang="ko">
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">사건번호</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="caseNum" id="caseNum" th:value="${processResultVersion.crackdownStatus.caseNum}" readonly>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">피의자(선박명)</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="boatNameKr" id="boatNameKr" th:value="${processResultVersion.fishingBoat.boatNameKr ne null ? processResultVersion.fishingBoat.boatNameKr : ''}" readonly>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">선고법원</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="sentencingCourt" id="sentencingCourt" th:value="${processResultVersion.sentencingCourt}" readonly>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">선고내용</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="sentencingDetail" id="sentencingDetail" th:value="${processResultVersion.sentencingDetail}" readonly>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">집행내용</label>
        <div class="col-4">
            <select class="form-select form-select-sm" name="executionDetail" id="executionDetail" disabled>
                <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 processResultVersion.executionDetail}"></option>
                </th:block>
                <option th:selected="${processResultVersion.executionDetail ne null && !#strings.contains(processResultVersion.executionDetail, 'PR')}" value="etc">직접입력</option>
            </select>
            <th:block th:if="${processResultVersion.executionDetail ne null && !#strings.contains(processResultVersion.executionDetail, 'PR')}">
                <div class="col-4">
                    <input type="text" class="form-control form-control-sm" name="processStatusEtc" th:value="${processResultVersion.executionDetail}" readonly>
                </div>
            </th:block>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">환부일</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="returnDt" id="returnDt" th:value="${#temporals.format(processResultVersion.returnDt, 'yyyy-MM-dd')}" readonly>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">위탁시작일</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="consignmentStartDt" id="consignmentStartDt" th:value="${#temporals.format(processResultVersion.consignmentStartDt, 'yyyy-MM-dd')}" readonly>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">위탁종료일</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="consignmentEndDt" id="consignmentEndDt" th:value="${#temporals.format(processResultVersion.consignmentEndDt, 'yyyy-MM-dd')}" readonly>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">몰수확정일</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="confiscationDt" id="confiscationDt" th:value="${#temporals.format(processResultVersion.confiscationDt, 'yyyy-MM-dd')}" readonly>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">폐선일</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="boatDisposalDt" id="boatDisposalDt" th:value="${#temporals.format(processResultVersion.boatDisposalDt, 'yyyy-MM-dd')}" readonly>
        </div>
    </div>
</html>