<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<script type="text/javascript" th:src="@{/js/publicBoard/publicBoard.js}"></script>
<script type="text/javascript" th:src="@{/js/publicBoard/notice.js}"></script>
<div class="card">
  <div class="card-header bg-white">
    <div class="row justify-content-between">
      <div class="col-auto">공지사항</div>
      <div class="col-auto"><a href="/publicBoard/noticePage" class="link-dark"><i class="bi bi-list"></i></a></div>
    </div>
  </div>
  <div class="card-body">
    <table class="table table-hover">
      <thead>
      <tr>
        <th>제목</th>
        <th>작성자</th>
        <th>작성일시</th>
      </tr>
      </thead>
      <tbody>
      <tr class="noticeTr" th:each="notice:${noticeList}">
        <input type="hidden" class="publicKey" th:value="${notice.publicKey}">
        <td th:text="${notice.title}"></td>
        <td th:text="${notice.wrtUserNm}"></td>
        <td th:text="${#temporals.format(notice.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
      </tr>
      </tbody>
    </table>
  </div>
</div>
<div class="modal fade" id="viewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="viewModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl modal-dialog-scrollable">
    <div class="modal-content" id="viewContent">

    </div>
  </div>
</div>
</html>