<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">

<div class="modal-header">
  <h5 class="modal-title" id="menuEditModalLabel">외사분실 실적 등록</h5>
  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="noticeEditBody">
  <form action="#" method="post" id="partWorkSaveFm">
    <input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
    <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
    <input type="hidden" id="saveYn" name="saveYn">
    <div class="mb-3 row">
      <label for="wrtUserNm" class="col-sm-2 col-form-label text-center">터미널명</label>
      <div class="col-sm-4">
        <select class="form-select form-select-sm" id="piSeq" name="piSeq">
          <option value="">선택</option>
          <th:block th:each="terminal:${tnList}">
			<option th:value="${terminal.pi_seq}" th:text="${terminal.terminal_nm}"></option>
    	  </th:block>
        </select>
      </div>
      <label for="wrtDt" class="col-sm-2 col-form-label text-center">일시</label>
      <div class="col-sm-4">
        <input type="text" class="form-control" id="workDt" name="workDt" readonly>
      </div>
    </div>
    <div class="mb-3 row">
      <label for="title" class="col-sm-2 col-form-label text-center">작성자</label>
      <div class="col-sm-4">
        <input type="text" class="form-control" value="작성자 자동입력" readonly>
      </div>
      <label for="wrtDt" class="col-sm-2 col-form-label text-center">작성일</label>
      <div class="col-sm-4">
        <input type="text" class="form-control" value="자동입력" readonly>
      </div>
    </div>
    <br>
    <div class="mb-3 row justify-content-center">
    <label class="col-sm-2 col-form-label text-center">종류</label>
            <div class="col-sm-12">
            <label for="workType" class="col-sm-2 col-form-label text-center">사건처리</label>	
            	<input type="radio" name="workType" value="CH">
            <label for="workType" class="col-sm-2 col-form-label text-center">범죄첩보제공</label>	
               <input type="radio" name="workType" value="POCI">
            <label for="workType" class="col-sm-1 col-form-label text-center">SRI</label>	
               <input type="radio" name="workType" value="SRI">
            <label for="workType" class="col-sm-2 col-form-label  text-center">합동점검</label>	
               <input type="radio" name="workType" value="JI">
            <label for="workType" class="col-sm-1 col-form-label text-center">회의</label>	
               <input type="radio" name="workType" value="MT">
            <label for="workType" class="col-sm-1 col-form-label text-center">기타</label>	
               <input type="radio" name="workType" value="ETC">
            </div>
          </div>
    <div class="mb-3 row justify-content-center">
      <label for="workInfo" class="col-sm-2 col-form-label text-center">내용</label>
      <div class="col-sm-10">
        <textarea id="workInfo" name='workInfo' ></textarea>
      </div>
    </div>
    <div class="mb-3 row">
      <label for="title" class="col-sm-2 col-form-label text-center">비고</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="description" name="description">
      </div>
    </div>
    <div class="row mb-3">
      <label for="fileInputer" class="col-sm-2 col-form-label text-center">업로드 자료</label>
      <div class="col-sm-10" style="min-height: 70px;">
        <div class="w-100 h-100 border border-info rounded text-center" id="uploadDiv">
            <br>파일을 업로드 해주세요.
        </div>
      </div>
      <input type="file" class="d-none" id="fileInputer" multiple>
    </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-primary" id="saveBtn">저장</button>
  <button type="button" class="btn btn-primary" id="temporarySaveBtn">임시저장</button>
</div>
</html>