<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<form action="#" method="post" id="planEditForm">
  <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="planKey" th:value="${plan.planKey}">
  <input type="hidden" name="planState" id="planState" th:value="${plan.planState}">
  <div class="mb-3 row">
    <label for="wrtNm" class="col-sm-2 col-form-label text-center">작성자</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" id="wrtNm" name="wrtNm" th:value="${plan.wrtNm}" readonly>
    </div>
    <label for="wrdDt" class="col-sm-2 col-form-label text-center">작성일</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" id="wrdDt" name="wrdDt" th:value="${#temporals.format(plan.wrtDt, 'yyyy-MM-dd HH:mm')}" readonly>
    </div>
    <label for="planDt" class="col-sm-2 col-form-label text-center">시행일자</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" id="planDt" name="planDt" th:value="${#temporals.format(plan.planDt, 'yyyy-MM-dd')}" autocomplete="off">
    </div>
  </div>
  <div class="mb-3 row">
    <label for="contentTitle" class="col-sm-2 col-form-label text-center">제목</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="contentTitle" name="contentTitle" th:value="${plan.contentTitle}">
    </div>
  </div>
  <div class="mb-3 row justify-content-center">
    <label for="planAddBtn" class="col-sm-2 col-form-label text-center">주요 사업계획</label>
    <div class="col-sm-10" id="planDiv">
      <!--<input type="text" class="form-control" name="planInfo">-->
    </div>
    <div class="col-sm-auto">
      <button type="button" class="btn btn-sm btn-outline-primary" id="planAddBtn"><i class="bi bi-plus-lg"></i></button>
    </div>
  </div>
  <div class="mb-3 row justify-content-center">
    <label for="detailPlanAddBtn" class="col-sm-2 col-form-label text-center">사업개요 및 추진계획</label>
    <div class="col-sm-10" id="detailPlanDiv">
      <!--<textarea id="detailPlanInfo"></textarea>-->
    </div>
    <div class="col-sm-auto">
      <button type="button" class="btn btn-sm btn-outline-primary" id="detailPlanAddBtn"><i class="bi bi-plus-lg"></i></button>
    </div>
  </div>
</form>