<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
       <form id="trInfoUpdate" method="post">
        <input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
   		<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
   		<input type="hidden" class="translatorKey" name="translatorKey" th:value="${trInfo.translatorKey}"/>
   		<input type="hidden" class="versionNo" name="versionNo" th:value="${trInfo.versionNo}"/>
		<br>
		<div class="pl-15">
          <div class="mb-3 row">
            <label for="eOgdp1" class="col-sm-1 col-form-label text-center">관서</label>        
            <div class="col-sm-2">
               <select class="form-select" id="eOgdp1" name="ogdp1" th:disabled="${accessAuth ne 'ACC003'}">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('OG')}">
                  <th:block th:if="${#lists.contains(mgtOrganList, commonCode.itemCd)}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.ogdp1}"></option>
                  </th:block>
                  </th:block>
               </select>
            </div>
            <label for="eTrLang" class="col-sm-1 col-form-label text-center">언어</label>
            <div class="col-sm-2">
              <select class="form-select" id="eTrLang" name="trLang">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('LGG')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.trLang}"></option>
                  </th:block>
               </select>
            </div>
           <label for="eTrCareer" class="col-sm-1 col-form-label text-center">경력</label>
            <div class="col-sm-2">
              <input type="text" class="form-control" id="eTrCareer" name="trCareer" th:value="${trInfo.trCareer}">
            </div> 
          </div>
          <div class="mb-3 row">
            <label for="eTrEname" class="col-sm-1 col-form-label text-center">성명</label>
            <div class="col-sm-2">
              <input type="text" class="form-control" id="eTrEname" name="trName" th:value="${trInfo.trName}">
            </div>
            <label for="eTrSex" class="col-sm-1 col-form-label text-center">성별</label>
            <div class="col-sm-2">
              <select class="form-select" id="eTrSex" name="trSex">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('SEX')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.trSex}"></option>
                  </th:block>
               </select>
            </div>
           <label for="eTrPhone" class="col-sm-1 col-form-label text-center">연락처</label>
            <div class="col-sm-2">
              <input type="text" class="form-control" id="eTrPhone" name="trPhone" th:value="${trInfo.trPhone}">
            </div> 
          </div>
          <div class="mb-3 row">
            <label for="eTrNny" class="col-sm-1 col-form-label text-center">국적</label>
            <div class="col-sm-2">
               <select class="form-select" id="eTrNny" name="trNny">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('NNY')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.trNny}"></option>
                  </th:block>
               </select>
            </div>
            <label for="eTrAge" class="col-sm-1 col-form-label text-center">나이</label>
            <div class="col-sm-2">
              <input type="text" class="form-control" id="eTrAge" name="trAge" th:value="${trInfo.trAge}">
            </div>
           <label for="eTrEdu" class="col-sm-1 col-form-label text-center">학력</label>
            <div class="col-sm-2">
              <select class="form-select" id="eTrEdu" name="trEdu">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('EDU')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.trEdu}"></option>
                  </th:block>
               </select>
            </div> 
          </div>
          <div class="mb-3 row">
            <label for="eTrCft" class="col-sm-1 col-form-label text-center">자격증</label>
            <div class="col-sm-2">
              <input type="text" class="form-control" id="eTrCft" name="trCft" th:value="${trInfo.trCft}">
            </div>
            <label for="eTrVisa" class="col-sm-1 col-form-label text-center">비자</label>
            <div class="col-sm-2">
              <select class="form-select" id="eTrVisa" name="trVisa">
                  <option value="">선택</option>
                  <th:block th:each="commonCode:${session.commonCode.get('VISA')}">
                    <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.trVisa}"></option>
                  </th:block>
               </select>
            </div>
           <label for="viewAptDt" class="col-sm-1 col-form-label text-center">위촉일</label>
            <div class="col-sm-2">
               <input type="text" class="form-control" id="viewAptDt" name="aptDt" th:value="${trInfo.aptDt}" readonly>
            </div> 
          </div>
          <div class="mb-2 row">
          <label for="eDmlYn" class="col-sm-1 col-form-label text-center">해촉</label>
            <div class="col-sm-2">
               <select class="form-select" id="eDmlYn" name="dmlYn">
               	  <option value="">선택</option>
                  <option value="O" th:selected="'O' == ${trInfo.dmlYn}">O</option>
                  <option value="X" th:selected="'X' == ${trInfo.dmlYn}">X</option>
               </select>
            </div>
            <label for="eRemark" class="col-sm-1 text-center">비고</label>
              <div class="col-sm-5">
                <input type="text" class="form-control" id="eRemark" name="remark" th:text="${trInfo.remark}">
              </div>
          </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" id="trDeleteBtn" th:if="${accessAuth eq 'ACC003'} or ${wrtUserSeq eq userSeq}">해임</button>
            <button type="button" class="btn btn-warning" id="updateBtn" th:if="${accessAuth eq 'ACC003'} or ${wrtUserSeq eq userSeq}">수정</button>
          </div>
         </form>

</html>