<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
    <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="boatNameKr" th:value="${sailorVersion.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="sailorNameKr" id="sailorNameKr" th:value="${sailorVersion.sailorNameKr}" 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="sailorNameCn" id="sailorNameCn" th:value="${sailorVersion.sailorNameCn}" 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="birthdate" id="birthdate" th:value="${#temporals.format(sailorVersion.birthdate, 'yyyy-MM-dd')}" readonly>
        </div>
        <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="residence" disabled>
                <option value="">선택</option>
                <th:block th:each="commonCode:${session.commonCode.get('RSC')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
                            th:selected="${commonCode.itemCd eq sailorVersion.residence}"></option>
                </th:block>
            </select>
        </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="education" disabled>
                <option value="">선택</option>
                <th:block th:each="commonCode:${session.commonCode.get('SED')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
                            th:selected="${commonCode.itemCd eq sailorVersion.education}"></option>
                </th:block>
            </select>
        </div>
        <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="position" disabled>
                <option value="">선택</option>
                <th:block th:each="commonCode:${session.commonCode.get('POS')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
                            th:selected="${commonCode.itemCd eq sailorVersion.position}"></option>
                </th:block>
            </select>
        </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="career" disabled>
                <option value="">선택</option>
                <th:block th:each="commonCode:${session.commonCode.get('BE')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
                            th:selected="${commonCode.itemCd eq sailorVersion.career}"></option>
                </th:block>
            </select>
        </div>
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">검거이력<br>(나포이력, 선원 포함)</label>
        <div class="col-4">
            <select class="form-select form-select-sm" name="arrestHistory" disabled>
                <option value="">선택</option>
                <option value="1" th:selected="${sailorVersion.arrestHistory == 1}">1건</option>
                <option value="2" th:selected="${sailorVersion.arrestHistory == 2}">2건</option>
                <option value="3" th:selected="${sailorVersion.arrestHistory == 3}">3건</option>
                <option value="4" th:selected="${sailorVersion.arrestHistory == 4}">4이상</option>
                <option value="0" th:selected="${sailorVersion.arrestHistory == 0}">없음</option>
            </select>
        </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="similarCriminalHistory" disabled>
                <option value="">선택</option>
                <option value="1" th:selected="${sailorVersion.similarCriminalHistory == 1}">1건</option>
                <option value="2" th:selected="${sailorVersion.similarCriminalHistory == 2}">2건</option>
                <option value="3" th:selected="${sailorVersion.similarCriminalHistory == 3}">3건</option>
                <option value="4" th:selected="${sailorVersion.similarCriminalHistory == 4}">4이상</option>
                <option value="0" th:selected="${sailorVersion.similarCriminalHistory == 0}">없음</option>
            </select>
        </div>
        <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="heterogeneousCriminalHistory" disabled>
                <option value="">선택</option>
                <option value="1" th:selected="${sailorVersion.heterogeneousCriminalHistory == 1}">1건</option>
                <option value="2" th:selected="${sailorVersion.heterogeneousCriminalHistory == 2}">2건</option>
                <option value="3" th:selected="${sailorVersion.heterogeneousCriminalHistory == 3}">3건</option>
                <option value="4" th:selected="${sailorVersion.heterogeneousCriminalHistory == 4}">4이상</option>
                <option value="0" th:selected="${sailorVersion.heterogeneousCriminalHistory == 0}">없음</option>
            </select>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">범죄경력<br>세부내용</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="criminalHistoryDetail" th:value="${sailorVersion.criminalHistoryDetail}" readonly>
        </div>
    </div>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label col-form-label-sm text-center">임금<br>(월급여)</label>
        <div class="col-4">
            <input class="form-control form-control-sm" name="monthlyWages" th:value="${sailorVersion.monthlyWages}" 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="note" th:value="${sailorVersion.note}" readonly>
        </div>
    </div>
</html>