<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<script type="text/javascript" th:src="@{/js/igActivities/fpiMgt/affair/affairMgt.js}"></script>
<div class="card">
  <div class="card-header bg-white">
    <div class="row justify-content-between">
      <div class="col-auto" th:text="${#strings.concat((searchParams.affairCategory eq 'CAT215'?'외사경찰':'외사첩보망'), ' 견문관리')}"></div>
      <div class="col-auto"><a th:href="|/affair/affairMgt?affairCategory=${searchParams.affairCategory}|" class="link-dark"><i class="bi bi-list"></i></a></div>
    </div>
  </div>
  <div class="card-body">
    <input type="hidden" id="affairCategory" th:value="${searchParams.affairCategory}">
    <table class="table table-hover">
      <thead>
      <tr>
        <th>제목</th>
        <th>작성일시</th>
      </tr>
      </thead>
      <tbody>
      <tr class="affairTr" th:each="affair:${affairList}">
        <input type="hidden" class="affairKey" th:value="${affair.affairKey}">
        <td th:text="${affair.title}"></td>
        <td th:text="${#temporals.format(affair.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
      </tr>
      </tbody>
    </table>
  </div>
</div>
<div class="modal fade" id="affairViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="affairViewModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl modal-dialog-scrollable">
    <div class="modal-content" id="affairViewBody">

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